Fix test.

This commit is contained in:
ArthurSonzogni 2025-06-20 15:45:26 +02:00
parent 4f1a694e81
commit a68cf6ac08
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

View File

@ -195,7 +195,9 @@ TEST(ScreenInteractive, FixedSizeInitialFrame) {
Loop loop(&screen, component); Loop loop(&screen, component);
loop.RunOnce(); loop.RunOnce();
} }
ASSERT_EQ( using namespace std::string_view_literals;
auto expected =
// Install the ScreenInteractive. // Install the ScreenInteractive.
"\0" // Flush stdout. "\0" // Flush stdout.
"\x1BP$q q" // Set cursor shape to 1 (block). "\x1BP$q q" // Set cursor shape to 1 (block).
@ -236,8 +238,8 @@ TEST(ScreenInteractive, FixedSizeInitialFrame) {
"\0" // Flush stdout. "\0" // Flush stdout.
// Skip one line to avoid the prompt to be printed over the last drawing. // Skip one line to avoid the prompt to be printed over the last drawing.
"\r\n", "\r\n"sv;
output); ASSERT_EQ(expected, output);
#endif #endif
} }