Lines Matching refs:val
65 let l = [{'id' : 5, 'val' : 'crayon'}, {'id' : 6, 'val' : 'camera'}]
66 …call assert_equal([{'id' : 6, 'val' : 'camera'}], matchfuzzy(l, 'cam', {'text_cb' : {v -> v.val}}))
67 call assert_equal([{'id' : 6, 'val' : 'camera'}], matchfuzzy(l, 'cam', {'key' : 'val'}))
68 call assert_equal([], matchfuzzy(l, 'day', {'text_cb' : {v -> v.val}}))
69 call assert_equal([], matchfuzzy(l, 'day', {'key' : 'val'}))
133 let l = [{'id' : 5, 'val' : 'crayon'}, {'id' : 6, 'val' : 'camera'}]
134 call assert_equal([[{'id' : 6, 'val' : 'camera'}], [[0, 1, 2]], [192]],
135 \ matchfuzzypos(l, 'cam', {'text_cb' : {v -> v.val}}))
136 call assert_equal([[{'id' : 6, 'val' : 'camera'}], [[0, 1, 2]], [192]],
137 \ matchfuzzypos(l, 'cam', {'key' : 'val'}))
138 call assert_equal([[], [], []], matchfuzzypos(l, 'day', {'text_cb' : {v -> v.val}}))
139 call assert_equal([[], [], []], matchfuzzypos(l, 'day', {'key' : 'val'}))