Add coverage for colors (extended) (#385)

This commit is contained in:
Arthur Sonzogni
2022-04-26 18:00:05 +02:00
committed by ArthurSonzogni
parent 04b36df567
commit 06ed8567b8
6 changed files with 113 additions and 11 deletions

View File

@@ -89,6 +89,16 @@ TEST(BorderTest, WithPixel) {
"ooooo");
}
TEST(BorderTest, Window) {
auto element = window(text("title"), text("content"));
Screen screen(10, 3);
Render(screen, element);
EXPECT_EQ(screen.ToString(),
"╭title───╮\r\n"
"│content │\r\n"
"╰────────╯");
}
} // namespace ftxui
// Copyright 2022 Arthur Sonzogni. All rights reserved.