comparison src/testdir/test_regexp_latin.vim @ 26907:6f43253463cc v8.2.3982

patch 8.2.3982: some lines of code not covered by tests Commit: https://github.com/vim/vim/commit/8bfa0eb863357c1013024233ebb2e95a0a848002 Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sun Jan 2 16:16:33 2022 +0000 patch 8.2.3982: some lines of code not covered by tests Problem: Some lines of code not covered by tests. Solution: Add a few more test cases. (Dominique Pell?, closes https://github.com/vim/vim/issues/9453)
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Jan 2022 17:30:02 +0100
parents 1e3c49c09260
children b4c111ea83b1
comparison
equal deleted inserted replaced
26906:1b8859235072 26907:6f43253463cc
4 scriptencoding latin1 4 scriptencoding latin1
5 5
6 source check.vim 6 source check.vim
7 7
8 func s:equivalence_test() 8 func s:equivalence_test()
9 let str = "AÀÁÂÃÄÅ B C D EÈÉÊË F G H IÌÍÎÏ J K L M NÑ OÒÓÔÕÖØ P Q R S T UÙÚÛÜ V W X YÝ Z aàáâãäå b c d eèéêë f g h iìíîï j k l m nñ oòóôõöø p q r s t uùúûü v w x yýÿ z" 9 let str = 'AÀÁÂÃÄÅ B C D EÈÉÊË F G H IÌÍÎÏ J K L M NÑ OÒÓÔÕÖØ P Q R S T UÙÚÛÜ V W X YÝ Z '
10 \ .. 'aàáâãäå b c d eèéêë f g h iìíîï j k l m nñ oòóôõöø p q r s t uùúûü v w x yýÿ z '
11 \ .. "0 1 2 3 4 5 6 7 8 9 "
12 \ .. "` ~ ! ? ; : . , / \\ ' \" | < > [ ] { } ( ) @ # $ % ^ & * _ - + \b \e \f \n \r \t"
10 let groups = split(str) 13 let groups = split(str)
11 for group1 in groups 14 for group1 in groups
12 for c in split(group1, '\zs') 15 for c in split(group1, '\zs')
13 " next statement confirms that equivalence class matches every 16 " next statement confirms that equivalence class matches every
14 " character in group 17 " character in group