Lines Matching refs:two
42 let d = #{one: 1, two: 2, three: 3}
49 call assert_equal(#{one: 1, two: 2, three: 3, four: 4}, d->extend(#{four: 4}))
50 call assert_equal(#{one: 1, two: 2, three: 3}, d->filter('v:val != 4'))
51 call assert_equal(2, d->get('two'))
54 call assert_true(d->has_key('two'))
55 call assert_equal([['one', 1], ['two', 2], ['three', 3]], d->items())
57 call assert_equal(['one', 'two', 'three'], d->keys())
59 call assert_equal(#{one: 2, two: 3, three: 4}, d->map('v:val + 1'))
60 call assert_equal(#{one: 1, two: 2, three: 3}, d->map('v:val - 1'))
63 call assert_equal(2, d->remove("two"))
64 let d.two = 2
68 call assert_equal("{'one': 1, 'two': 2, 'three': 3}", d->string())
88 eval ['one', 'two', 'three']->append(1)
89 call assert_equal(['', 'one', 'two', 'three'], getline(1, '$'))
94 eval ['one', 'two', 'three']->appendbufline(bnr, 1)
95 call assert_equal(['', 'one', 'two', 'three'], getbufline(bnr, 1, '$'))
101 func Concat(one, two, three) argument
102 return a:one .. a:two .. a:three
112 let Partial = function('Concat', ['two'])