turn on tests for Buffer::write_to_file()
This commit is contained in:
parent
d5e3fdf919
commit
5c9f7a7645
@ -3,7 +3,6 @@
|
||||
#include "TestSupport.h"
|
||||
#include "Path.h"
|
||||
|
||||
#if 0
|
||||
TEST(BufferTest, writes_an_identical_file_to_what_is_loaded_if_no_changes_were_performed)
|
||||
{
|
||||
const char * files_to_test[] = {
|
||||
@ -15,14 +14,21 @@ TEST(BufferTest, writes_an_identical_file_to_what_is_loaded_if_no_changes_were_p
|
||||
};
|
||||
for (auto e : files_to_test)
|
||||
{
|
||||
Buffer b;
|
||||
ASSERT_TRUE(b.load_from_file(e));
|
||||
Buffer b(e);
|
||||
ASSERT_TRUE(b.write_to_file("test/tmp/f"));
|
||||
ASSERT_TRUE(Path::is_file("test/tmp/f"));
|
||||
TestSupport::compare_files(e, "test/tmp/f");
|
||||
}
|
||||
}
|
||||
|
||||
TEST(BufferTest, writes_an_empty_file_for_an_empty_buffer)
|
||||
{
|
||||
Buffer b;
|
||||
ASSERT_TRUE(b.write_to_file("test/tmp/f"));
|
||||
TestSupport::compare_files("test/files/empty.txt", "test/tmp/f");
|
||||
}
|
||||
|
||||
#if 0
|
||||
TEST(BufferTest, allows_navigating_using_cursors)
|
||||
{
|
||||
Buffer b;
|
||||
|
Loading…
x
Reference in New Issue
Block a user