Skip to content

Commit

Permalink
Add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarfovich committed Aug 2, 2024
1 parent bf1dd8c commit 83a019f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HW4/tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 83a019f

Please sign in to comment.