From af654d5769378c2d68c33abec9e81f90a58ee22d Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 30 Oct 2022 15:25:56 +0800 Subject: [PATCH] upd: [imp] sys::error ut --- test/test_imp_system.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_imp_system.cpp b/test/test_imp_system.cpp index a6a6bcd..ff8832e 100644 --- a/test/test_imp_system.cpp +++ b/test/test_imp_system.cpp @@ -29,6 +29,7 @@ TEST(system, error_code) { std::stringstream ss; ss << imp::sys::error{}; EXPECT_EQ(e_msg, ss.str()); + EXPECT_EQ(e_msg, fmt::format("{}", imp::sys::error())); std::cout << e_msg << "\n"; }