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

This commit is contained in:
josh committed 2016-12-07 22:20:41 -05:00
1 parent 085a8a556a
commit 6c8e860fb5
3 files changed
+5

No files matched your search

+1
View File
@@ -0,0 +1 @@
+2
View File
@@ -0,0 +1,2 @@
+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",