From 10f7d3aeb197c887d4cacaecbeb43d4c8a69bb6c Mon Sep 17 00:00:00 2001 From: Nicolas Lesser Date: Sun, 9 Dec 2018 16:35:13 +0100 Subject: [PATCH] Add a unit test. --- test/format-impl-test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index c40fe3b5..41cc7e14 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -228,4 +228,5 @@ TEST(ColorsTest, Colors) { stdout, fmt::print(fg(fmt::color::blue) | fmt::emphasis::bold, "blue/bold"), "\x1b[1m\x1b[38;2;000;000;255mblue/bold\x1b[0m"); + EXPECT_WRITE(stdout, fmt::print(fmt::text_style(), "hi"), "hi"); }