From 6b27fafb267a5d04d09b4eb73f9f1606f18b1802 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 18 Dec 2016 19:52:41 -0500 Subject: [PATCH] test no EOL at EOF with CRLF-formatted files --- test/files/no_eol_at_eof_crlf.txt | 2 ++ test/src/test_Buffer.cc | 1 + 2 files changed, 3 insertions(+) create mode 100644 test/files/no_eol_at_eof_crlf.txt diff --git a/test/files/no_eol_at_eof_crlf.txt b/test/files/no_eol_at_eof_crlf.txt new file mode 100644 index 0000000..87d9505 --- /dev/null +++ b/test/files/no_eol_at_eof_crlf.txt @@ -0,0 +1,2 @@ +Line 1 +Line 2 \ No newline at end of file diff --git a/test/src/test_Buffer.cc b/test/src/test_Buffer.cc index d39c4aa..495920b 100644 --- a/test/src/test_Buffer.cc +++ b/test/src/test_Buffer.cc @@ -13,6 +13,7 @@ TEST(BufferTest, writes_an_identical_file_to_what_is_loaded_if_no_changes_were_p "test/files/line_endings/crlf_format.txt", "test/files/line_endings/lf_format.txt", "test/files/no_eol_at_eof.txt", + "test/files/no_eol_at_eof_crlf.txt", }; for (auto e : files_to_test) {