Test that files consisting of just 1 or 2 newline characters are written correctly

This commit is contained in:
Josh Holtrop 2016-12-07 22:20:41 -05:00
parent 085a8a556a
commit 6c8e860fb5
3 changed files with 5 additions and 0 deletions

1
test/files/one_eol.txt Normal file
View File

@ -0,0 +1 @@

2
test/files/two_eol.txt Normal file
View File

@ -0,0 +1,2 @@

View File

@ -7,6 +7,8 @@ TEST(BufferTest, writes_an_identical_file_to_what_is_loaded_if_no_changes_were_p
{
const char * files_to_test[] = {
"test/files/empty.txt",
"test/files/one_eol.txt",
"test/files/two_eol.txt",
"test/files/line_endings/cr_format.txt",
"test/files/line_endings/crlf_format.txt",
"test/files/line_endings/lf_format.txt",