mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Feature: Add the dashed style. (#594)
This commit is contained in:
@@ -35,6 +35,20 @@ TEST(SeparatorTest, Light) {
|
||||
"down");
|
||||
}
|
||||
|
||||
TEST(SeparatorTest, Dashed) {
|
||||
auto element = vbox({
|
||||
text("top"),
|
||||
separatorDashed(),
|
||||
text("down"),
|
||||
});
|
||||
Screen screen(4, 3);
|
||||
Render(screen, element);
|
||||
EXPECT_EQ(screen.ToString(),
|
||||
"top \r\n"
|
||||
"╍╍╍╍\r\n"
|
||||
"down");
|
||||
}
|
||||
|
||||
TEST(SeparatorTest, Double) {
|
||||
auto element = vbox({
|
||||
text("top"),
|
||||
|
||||
Reference in New Issue
Block a user