mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 12:37:06 +08:00
Fix tests expectations.
This commit is contained in:
parent
28e62663c3
commit
8fede35dc5
@ -46,10 +46,16 @@ TEST(VBoxTest, ScreenSmaller1Flex) {
|
||||
|
||||
TEST(VBoxTest, ScreenFitFlex) {
|
||||
auto root = vbox(text(L"text_1"), filler(), text(L"text_2"));
|
||||
Screen screen(15, 10);
|
||||
Screen screen(7, 5);
|
||||
Render(screen, root.get());
|
||||
|
||||
EXPECT_EQ("text_1\ntext_2", screen.ToString());
|
||||
EXPECT_EQ(
|
||||
"text_1 \n"
|
||||
" \n"
|
||||
" \n"
|
||||
" \n"
|
||||
"text_2 "
|
||||
,screen.ToString());
|
||||
}
|
||||
|
||||
TEST(VBoxTest, ScreenBigger1Flex) {
|
||||
|
Loading…
Reference in New Issue
Block a user