Lines Matching refs:x

10   call assert_fails("let x = matchfuzzy(test_null_list(), 'foo')", 'E686:')
70 call assert_fails("let x = matchfuzzy(l, 'cam', 'random')", 'E715:')
73 call assert_fails("let x = matchfuzzy(l, 'day', {'text_cb' : {a, b -> 1}})", 'E119:')
75 call assert_fails("let x = matchfuzzy(l, 'cam', {'text_cb' : []})", 'E921:')
76 call assert_fails("let x = matchfuzzy(l, 'foo', {'key' : []})", 'E730:')
77 call assert_fails("let x = matchfuzzy(l, 'cam', test_null_dict())", 'E715:')
78 call assert_fails("let x = matchfuzzy(l, 'foo', {'key' : test_null_string()})", 'E475:')
79 call assert_fails("let x = matchfuzzy(l, 'foo', {'text_cb' : test_null_function()})", 'E475:')
85 call assert_fails("let x = matchfuzzy(l, 'foo', {'key' : 'name'})", 'E730:')
107 let x = matchfuzzypos([repeat('a', 256)], repeat('a', 256))
108 call assert_equal(range(256), x[1][0])
113 call assert_equal([[repeat('x', 300) .. 'abc'], [[300, 301, 302]], [-135]],
114 \ matchfuzzypos([repeat('x', 300) .. 'abc'], 'abc'))
140 call assert_fails("let x = matchfuzzypos(l, 'cam', 'random')", 'E715:')
143 call assert_fails("let x = matchfuzzypos(l, 'day', {'text_cb' : {a, b -> 1}})", 'E119:')
145 call assert_fails("let x = matchfuzzypos(l, 'cam', {'text_cb' : []})", 'E921:')
146 call assert_fails("let x = matchfuzzypos(l, 'foo', {'key' : []})", 'E730:')
147 call assert_fails("let x = matchfuzzypos(l, 'cam', test_null_dict())", 'E715:')
148 call assert_fails("let x = matchfuzzypos(l, 'foo', {'key' : test_null_string()})", 'E475:')
149 call assert_fails("let x = matchfuzzypos(l, 'foo', {'text_cb' : test_null_function()})", 'E475:')
152 call assert_fails("let x = matchfuzzypos(l, 'foo', {'key' : 'name'})", 'E730:')
161 call assert_equal(['αβΩxxx', 'xαxβxΩx'],
162 \ matchfuzzy(['αβΩxxx', 'xαxβxΩx'], 'αβΩ'))
180 call assert_equal(['ŗŝţũŵż', 'xŗŝţũŵż'],
181 \ ['xŗŝţũŵż', 'ŗŝţũŵż']->matchfuzzy('ŗŝţũŵż'))
186 call assert_equal(['xㄞㄡㄤfffifl', 'xxㄞㄡㄤfffifl'],
187 \ ['xxㄞㄡㄤfffifl', 'xㄞㄡㄤfffifl']->matchfuzzy('ㄞㄡㄤfffifl'))
189 call assert_equal(['ŗŝţ', 'ŗŝţx', 'ŗŝţxx'],
190 \ ['ŗŝţxx', 'ŗŝţ', 'ŗŝţx']->matchfuzzy('ŗŝţ'))
201 call assert_equal([['αβΩxxx', 'xαxβxΩx'], [[0, 1, 2], [1, 3, 5]], [222, 113]],
202 \ matchfuzzypos(['αβΩxxx', 'xαxβxΩx'], 'αβΩ'))
210 let x = matchfuzzypos([repeat('Ψ', 256)], repeat('Ψ', 256))
211 call assert_equal(range(256), x[1][0])
222 call assert_equal([['xѳѵҁxxѳѴҁ'], [[6, 7, 8]], [189]], matchfuzzypos(['xѳѵҁxxѳѴҁ'], 'ѳѵҁ'))
224 call assert_equal([['xちだx_ちだ'], [[5, 6]], [145]], matchfuzzypos(['xちだx_ちだ'], 'ちだ'))
226 call assert_equal([['ѳѵҁxѳѵҁ'], [[0, 1]], [150]], matchfuzzypos(['ѳѵҁxѳѵҁ'], 'ѳѵ'))
230 call assert_equal([['xффйд'], [[2, 3, 4]], [168]], matchfuzzypos(['xффйд'], 'фйд'))