Lines Matching refs:getline
21 call assert_equal(['abc here some more '], getline(1,'$'))
31 call assert_equal([''], getline(1,'$'))
34 call assert_equal([''], getline(1,'$'))
39 call assert_equal([''], getline(1,'$'))
44 call assert_equal([''], getline(1,'$'))
52 call assert_equal(['abc defghi jkl'], getline(1, 2))
59 call assert_equal(["abc def", "ghi jkl"], getline(1, 2))
77 call assert_equal(['abcy'], getline(1, '$'))
83 call assert_equal(['abc', ''], getline(1, '$'))
92 call assert_equal(['abxc'], getline(1, '$'))
98 call assert_equal(['xabc'], getline(1, '$'))
110 call assert_equal(['abcy'], getline(1, '$'))
115 call assert_equal(['abcy'], getline(1, '$'))
119 call assert_equal(['hijabcdefg'], getline(1, '$'))
130 call assert_equal(['abcX'], getline(1, '$'))
144 call assert_equal(['abcXy', 'abcX', 'zzzZ'], getline(1, '$'))
152 call assert_equal(['abcXy', 'abcX', 'zzzZ'], getline(1, '$'))
173 call assert_equal(['abc', 'zzz', 'xxx', 'yyy'], getline(1,'$'))
192 call assert_equal(['July'], getline(1,'$'))
203 call assert_equal(["Jan\<c-l>",''], 1->getline('$'))
207 call assert_equal(["January"], 1->getline('$'))
222 call assert_equal(['abZZZc'], getline(1,'$'))
236 call assert_equal(['ABC', 'def', 'ghi'], getline(1,'$'))
240 call assert_equal(['ABC', 'ZZZ', 'def', 'ghi'], getline(1,'$'))
242 call assert_equal(['ABC', 'ZZZ', 'YYYdef', 'ghi'], getline(1,'$'))
248 call assert_equal(['ABxC', 'ZZZ', 'def', 'ghi'], getline(1,'$'))
250 call assert_equal(['ABxCx', 'ZZZ', 'def', 'ghi'], getline(1,'$'))
255 call assert_equal(["ABC\<c-\>a", 'ZZZ', 'def', 'ghi'], getline(1, '$'))
268 call assert_equal(['{', "\<tab>int c;", "/* comment */"], getline(1, '$'))
276 call assert_equal(['{', "\<tab>int c;", "\<tab>/* comment */"], getline(1, '$'))
279 call assert_equal(['{', "\<tab>int c;", "\<tab>/* comment */", "\tend", ''], getline(1, '$'))
296 call assert_equal(['{', "\<tab>\<tab>int c;", "\<tab>\<tab>\<tab>/* comment */"], getline(1, '$'))
309 if empty(getline(v:lnum))
310 if getline(pline) =~ 'if\|then'
323 call assert_equal(['if [ $this ]', "then", "\<tab>that", "fi"], getline(1, '$'))
336 call assert_equal(["\tabc", "def"], getline(1, '$'))
342 call assert_equal(["\tabc", "def"], getline(1, '$'))
348 call assert_equal(["\tabc", "\t\t\tdef"], getline(1, '$'))
355 call assert_equal(["\tabc", "\t\t\tdef"], getline(1, '$'))
362 call assert_equal(["\tabc", "\t\t\tdef"], getline(1, '$'))
368 call assert_equal(["\tabc", "\t\t\tdef"], getline(1, '$'))
378 call assert_equal(["\tone\t\ttwo"], getline(1, '$'))
389 call assert_equal(["\tabc {", "\t\tmore", "\t}"], getline(1, '$'))
399 call assert_equal(" foo bar", getline(1))
400 call assert_equal("", getline(2))
401 call assert_equal(" baz", getline(3))
408 call assert_equal(["\tone", "\ttwo"], getline(1, '$'))
466 call assert_equal(map(range(1, 10), 'string(v:val)') + ['', '', '', ''], getline(1, '$'))
483 call assert_equal(["\<C-_>xyzabc"], getline(1, '$'))
489 call assert_equal(["æèñabc"], getline(1, '$'))
494 call assert_equal(["xyzabc"], getline(1, '$'))
518 call assert_equal(['foobar ', 'foobar more', 'foobar morend more', '', ''], getline(1, '$'))
543 call assert_equal(['foooooooooobar', 'foooooooooobar', 'foobar'], getline(1, '$'))
549 call assert_equal(['foooooooooobar', 'foooooooooobar', 'foozzzzbar'], getline(1, '$'))
562 call assert_match('runtest\.vim', getline(1))
569 call assert_equal([include, 'one', ''], getline(1, '$'))
571 call assert_equal([include, 'two', ''], getline(1, '$'))
573 call assert_equal([include, 'three', ''], getline(1, '$'))
575 call assert_equal([include, '', ''], getline(1, '$'))
589 call assert_equal(['AA', ''], getline(1, '$'))
594 call assert_equal(['AAA'], getline(1, '$'))
599 call assert_equal(['AAAA'], getline(1, '$'))
604 call assert_equal(['A'], getline(1, '$'))
609 call assert_equal(['AA'], getline(1, '$'))
616 call assert_equal(['AA', ''], getline(1, '$'))
621 call assert_equal(["AA\<c-s>", ''], getline(1, '$'))
626 call assert_equal(["AA\<c-f>", ''], getline(1, '$'))
645 call assert_equal(['ä'], getline(1, '$'))
659 call assert_equal(['one', 'two', 'three', 'three', '', '', ''], getline(1, '$'))
661 call assert_equal(['one', 'two', 'three', 't', '', '', ''], getline(1, '$'))
663 call assert_equal(['one', 'two', 'three', 'two', '', '', ''], getline(1, '$'))
665 call assert_equal(['one', 'two', 'three', 'three', '', '', ''], getline(1, '$'))
667 call assert_equal(['one', 'two', 'three', 't', '', '', ''], getline(1, '$'))
669 call assert_equal(['one', 'two', 'three', 'two', '', '', ''], getline(1, '$'))
671 call assert_equal(['one', 'two', 'three', 't', '', '', ''], getline(1, '$'))
673 call assert_equal(['one', 'two', 'three', 'three', '', '', ''], getline(1, '$'))
677 call assert_equal(['one', 'two', 'three', 'three', "\<c-l>\<c-p>\<c-n>", '', ''], getline(1, '$'))
695 call assert_equal(['foo', 'bar ', 'foobar'], getline(1, '$'))
718 call assert_equal(['INFER', 'loWER', 'i', 'LO', '', ''], getline(1, '$'), e)
725 call assert_equal(['INFER', 'loWER', 'infer', 'LOWER', '', ''], getline(1, '$'), e)
740 call assert_equal(['abc here some more text', 'def'], getline(1, '$'))
766 …call assert_equal(["getreg('=', 1)", '5000', "FOOBAR eins zwei", "FOOBAR eins zwei"], getline(1, '…
779 call assert_equal(['vims', ''], getline(1, '$'))
790 call assert_equal(['vim', ''], getline(1, '$'))
796 call assert_equal(['Vim', ''], getline(1, '$'))
801 call assert_equal(['Aim'], getline(1, '$'))
806 call assert_equal(['vim', ''], getline(1, '$'))
811 call assert_equal(['', ''], getline(1, '$'))
823 call assert_equal(["\<tab>abcxyz"], getline(1, '$'))
829 call assert_equal(["\<tab>abcxyz"], getline(1, '$'))
837 call assert_equal(['mad', ''], getline(1, '$'))
842 call assert_equal(['angry', ''], getline(1, '$'))
847 call assert_equal(['furious', ''], getline(1, '$'))
852 call assert_equal(['enraged', ''], getline(1, '$'))
857 call assert_equal(['mad', ''], getline(1, '$'))
862 call assert_equal(['mad', ''], getline(1, '$'))
869 call assert_equal(['angry', ''], getline(1, '$'))
874 call assert_equal(['mad', ''], getline(1, '$'))
888 call assert_equal(['mad'], getline(1, '$'))
902 let line = getline('.')
929 call assert_equal(['an amiable', ''], getline(1, '$'))
967 call assert_equal(['X', '', ''], getline(1, '$'))
971 call assert_equal(['XJan', ''], getline(1, '$'))
975 call assert_equal(['X', ''], getline(1, '$'))
979 call assert_equal(['X', ''], getline(1, '$'))
983 call assert_equal(['Mar', ''], getline(1, '$'))
986 call assert_equal(['May', ''], getline(1, '$'))
989 call assert_equal(['M', ''], getline(1, '$'))
1024 call assert_equal(["abc\<c-z>"], getline(1,'$'))
1053 call assert_equal(["abc\x0e\x0c\x02"], getline(1, '$'))
1060 call assert_equal(["abc\x0e\x0c\x02"], getline(1, '$'))
1100 call assert_equal(['YabcX', 'ZdefY'], getline(1, '$'))
1112 call assert_equal(['ZYX>', 'def'], getline(1, '$'))
1116 call assert_equal(['ZYX>bc', 'def'], getline(1, '$'))
1328 call assert_equal(['a'], getline(1,'$'))
1340 call assert_equal(['xa'], getline(1, '$'))
1396 call assert_equal(['bc', 'def', 'ghi'], getline(1,'$'))
1413 call assert_equal(['ac', 'def', 'ghi'], getline(1,'$'))
1536 call assert_equal('foo', getline(1))
1543 call assert_equal('bar', getline(1))
1551 call assert_equal('aaxx', getline(1))
1559 call assert_equal('bbxx', getline(1))
1593 call assert_equal("ABC !a\<C-O>g\<C-G>8", getline(2))
1603 call assert_equal('', getline(1))
1607 call assert_equal('', getline(1))
1618 call assert_equal('axyz', getline(1))
1620 call assert_equal('axyzabc', getline(1))
1623 call assert_equal("axyz\tb", getline(1))
1625 call assert_equal("12axyz\tb", getline(1))
1637 call assert_equal("xyXz", getline(1))
1643 call assert_equal(["DX", "xyz"], getline(1, 2))
1662 call assert_equal('abc', getline(1))
1734 call assert_equal(['one', 'two'], getline(1, '$'))
1747 call assert_equal(['one', 'two'], getline(1, '$'))
1775 call assert_equal([''], getline(1, '$'))
1795 call assert_equal([''], getline(1, '$'))
1828 call assert_equal(expected, getline(1))
1837 call assert_equal(expected, getline(1))
1849 call assert_equal('ABCFEDGHI', getline(1))
1930 call assert_equal("eerht owt\teno", getline(1))
1933 call assert_equal("one\ttwo a three", getline(1))
1935 call assert_equal("one\ttwo a ree", getline(1))
1937 call assert_equal("one\t a ree", getline(1))
1939 call assert_equal("one\t ", getline(1))
1943 call assert_equal(['one two three', 'ruof'], getline(1, '$'))
1955 call assert_equal(['r', 'r'], getline(1, 2))