Fix tests expectations.

This commit is contained in:
ArthurSonzogni 2019-06-17 21:29:51 +02:00
parent 28e62663c3
commit 8fede35dc5

View File

@ -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) {