From 83a019fb89d4d70e27f727ee9cd9c6087c7e97e3 Mon Sep 17 00:00:00 2001 From: Tim Gilevich Date: Fri, 2 Aug 2024 18:29:08 +0300 Subject: [PATCH] Add more test cases --- HW4/tests/test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HW4/tests/test.cpp b/HW4/tests/test.cpp index 6915836..9b26ce3 100644 --- a/HW4/tests/test.cpp +++ b/HW4/tests/test.cpp @@ -190,6 +190,9 @@ TEST(PrintIpTest, CheckUint64) print_ip(uint64_t(-281'474'976'710'656)); ASSERT_EQ(outStream.str(), "255.255.0.0.0.0.0.0"); outStream.str(""); + print_ip(uint64_t(-281'474'976'645'121)); + ASSERT_EQ(outStream.str(), "255.255.0.0.0.0.255.255"); + outStream.str(""); std::cout.rdbuf(oldbuf); }