@@ -72,14 +72,17 @@ umc = UE.matchchar
72
72
73
73
@testset " lookupname" begin
74
74
@test UE. lookupname (" foobar" ) == " "
75
+ @test EE. lookupname (SubString (" My name is Spock" , 12 )) == " "
75
76
@test UE. lookupname (" end of text" ) == " \x 03" # \3
76
77
@test UE. lookupname (" TIBETAN LETTER -A" ) == " \u 0f60"
77
78
@test UE. lookupname (" LESS-THAN OR SLANTED EQUAL TO" ) == " \u 2a7d"
78
79
@test UE. lookupname (" REVERSED HAND WITH MIDDLE FINGER EXTENDED" ) == " \U 1f595"
79
80
end
80
81
81
82
@testset " matches" begin
83
+ @test isempty (UE. matches (" " ))
82
84
@test isempty (UE. matches (" \u f900" ))
85
+ @test isempty (UE. matches (SubString (" This is \u f900" , 9 )))
83
86
for (chrs, exp) in ((" \U 1f596" , [" RAISED HAND WITH PART BETWEEN MIDDLE AND RING FINGERS" ]),
84
87
(" \u 0f4a" , [" TIBETAN LETTER REVERSED TA" ]),
85
88
(" ." , [" FULL STOP" , " PERIOD" ]))
91
94
92
95
@testset " longestmatches" begin
93
96
@test isempty (UE. longestmatches (" \u f900 abcd" ))
97
+ @test isempty (UE. longestmatches (SubString (" This is \u f900 abcd" , 9 )))
94
98
for (chrs, exp) in ((" \U 1f596 abcd" , [" RAISED HAND WITH PART BETWEEN MIDDLE AND RING FINGERS" ]),
95
99
(" .abcd" , [" FULL STOP" , " PERIOD" ]),
96
100
(" \u 0f4a#123" , [" TIBETAN LETTER REVERSED TA" , " TIBETAN LETTER TTA" ]))
102
106
103
107
@testset " completions" begin
104
108
@test isempty (UE. completions (" ScottPaulJones" ))
109
+ @test isempty (EE. completions (SubString (" My name is Scott" , 12 )))
105
110
for (chrs, exp) in ((" ZERO" , [" ZERO WIDTH JOINER" , " ZERO WIDTH NO-BREAK SPACE" ,
106
111
" ZERO WIDTH NON-JOINER" , " ZERO WIDTH SPACE" ]),
107
112
(" BACK OF" , [" BACK OF ENVELOPE" ]))
0 commit comments