From 8642ae500552965e829ae0567cf37c41982dc71f Mon Sep 17 00:00:00 2001 From: yuyawk Date: Sat, 19 Oct 2024 06:02:19 +0900 Subject: [PATCH] fix: assertion in test --- examples/cc/time_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/cc/time_test.cpp b/examples/cc/time_test.cpp index 0b49d10..a1cd837 100644 --- a/examples/cc/time_test.cpp +++ b/examples/cc/time_test.cpp @@ -17,4 +17,6 @@ GTEST_TEST(TimeTest, ReplaceTime) { const auto got = time(nullptr); libc_replacer_reset_time(); GTEST_ASSERT_EQ(got, 123); + const auto got_after_reset = time(nullptr); + GTEST_ASSERT_NE(got_after_reset, 123); }