From a68cf6ac0899c87f27bb89665200314a719b5080 Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Fri, 20 Jun 2025 15:45:26 +0200 Subject: [PATCH] Fix test. --- src/ftxui/component/screen_interactive_test.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ftxui/component/screen_interactive_test.cpp b/src/ftxui/component/screen_interactive_test.cpp index 299d34f7..7d2da99d 100644 --- a/src/ftxui/component/screen_interactive_test.cpp +++ b/src/ftxui/component/screen_interactive_test.cpp @@ -195,7 +195,9 @@ TEST(ScreenInteractive, FixedSizeInitialFrame) { Loop loop(&screen, component); loop.RunOnce(); } - ASSERT_EQ( + using namespace std::string_view_literals; + + auto expected = // Install the ScreenInteractive. "\0" // Flush stdout. "\x1BP$q q" // Set cursor shape to 1 (block). @@ -236,8 +238,8 @@ TEST(ScreenInteractive, FixedSizeInitialFrame) { "\0" // Flush stdout. // Skip one line to avoid the prompt to be printed over the last drawing. - "\r\n", - output); + "\r\n"sv; + ASSERT_EQ(expected, output); #endif }