tweak buffer unit test

This commit is contained in:
Maxime Coste 2013-01-31 18:59:23 +01:00
parent edef8e4e98
commit 1c301482d5

View File

@ -48,6 +48,8 @@ void test_buffer()
buffer.end_undo_group(); buffer.end_undo_group();
buffer.undo(); buffer.undo();
assert(buffer.string(buffer.end() - 7, buffer.end()) == "kanaky\n"); assert(buffer.string(buffer.end() - 7, buffer.end()) == "kanaky\n");
buffer.redo();
assert(buffer.string(buffer.end() - 6, buffer.end()) == "mutch\n");
} }
void test_editor() void test_editor()