mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-29 16:39:34 +08:00
Add coverage for colors (extended) (#385)
This commit is contained in:

committed by
ArthurSonzogni

parent
04b36df567
commit
06ed8567b8
@@ -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.
|
||||
|
Reference in New Issue
Block a user