Lines Matching refs:readfile
13 let l = readfile(f)
59 call assert_equal(contents, readfile('Xfile'))
66 call assert_equal(contents, readfile('Xfile'))
67 call assert_equal(contents, readfile('Xfile' .. &backupext))
103 call assert_equal(contents, readfile('Xfile_conversion_err~'))
178 call assert_equal(['aaa'], readfile('Xa'))
185 call assert_equal(['bbb'], readfile('Xb'))
217 call assert_equal(['L2', 'L3'], readfile('Xfile'))
340 call WaitForAssert({-> assert_equal('Line2', readfile('Xfile')[1])})
391 call assert_equal(['xxx', 'yyy', 'aaa', 'bbb'], readfile('Xfile'))
401 call assert_equal(['ccc', 'ddd'], readfile('Xfile'))
425 call assert_equal(['line1'], readfile('Xfile'))
451 call assert_equal(['one'], readfile('Xfile.orig'))
455 call assert_equal(['one'], readfile('Xfile.orig'))
466 call assert_equal(['xxx'], readfile('Xfile'))
467 call assert_equal([], readfile('Xfile.orig'))
535 call assert_equal(expected, readfile('Xtest'))
548 call assert_equal(expected, readfile('Xtest'))
561 call assert_equal(expected, readfile('Xtest'))
577 call assert_equal(expected, readfile('Xtest'))
593 call assert_equal(expected, readfile('Xtest'))
609 call assert_equal(expected, readfile('Xtest'))
644 call assert_equal(["\xFE\xFElatin-1", ''], readfile('Xfile2', 'b'))
647 call assert_equal(["\xFE\xFElatin-1", ''], readfile('Xtest3', 'b'))
659 call assert_equal(['utf-8', ''], readfile('Xfile2', 'b'))
662 call assert_equal([utf8_bom .. "utf-8", ''], readfile('Xtest3', 'b'))
673 call assert_equal([utf8_bom .. "utf-8\x80err", ''], readfile('Xfile2', 'b'))
677 \ readfile('Xtest3', 'b'))
688 call assert_equal(["ucs-2", ''], readfile('Xfile2', 'b'))
692 \ readfile('Xtest3', 'b'))
705 call assert_equal(["ucs-2le", ''], readfile('Xfile2', 'b'))
709 \ readfile('Xtest3', 'b'))
720 call assert_equal(["ucs-4", ''], readfile('Xfile2', 'b'))
723 …call assert_equal([utf32be_bom .. "\n\n\nu\n\n\nc\n\n\ns\n\n\n-\n\n\n4\n\n\n", ''], readfile('Xtes…
736 call assert_equal(["ucs-4le", ''], readfile('Xfile2', 'b'))
739 …2le_bom .. "u\n\n\nc\n\n\ns\n\n\n-\n\n\n4\n\n\nl\n\n\ne\n\n\n", "\n\n\n"], readfile('Xtest3', 'b'))
752 call assert_equal(0z6E6F656F6C, readfile('XNoEolSetEol', 'B'))
762 call assert_equal(0z6E6F656F6C0A, readfile('XNoEolSetEol', 'B'))
782 call assert_equal(['2222'], readfile('Xfile1'))
797 call assert_equal(['1111'], readfile('Xfile1'))
798 call assert_equal(['2222'], readfile('Xfile2'))
814 call assert_equal(['2222'], readfile('Xfile1'))
826 call assert_equal(['1111'], readfile('Xfile1'))
827 call assert_equal(['2222'], readfile('Xfile2'))
842 call assert_equal(['cccc'], readfile('Xfile'))
843 call assert_equal(['bbbb'], readfile('Xfile.bak'))
849 call assert_equal(['dddd'], readfile('Xfile'))
850 call assert_equal(['bbbb'], readfile('Xfile.bak'))
885 call assert_equal(0zD800DC01, readfile('Xfile', 'B')[0:3])