add an empty buffer unit test

This commit is contained in:
Maxime Coste 2012-11-28 20:10:49 +01:00
parent 3a4859ecba
commit 0955ef5eb0

View File

@ -7,6 +7,8 @@ using namespace Kakoune;
void test_buffer()
{
Buffer empty_buffer("empty", Buffer::Flags::None, {});
Buffer buffer("test", Buffer::Flags::None, { "allo ?\n", "mais que fais la police\n", " hein ?\n", " youpi\n" });
assert(buffer.line_count() == 4);