diff options
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/BlockFrequencyTest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unittests/Support/BlockFrequencyTest.cpp b/unittests/Support/BlockFrequencyTest.cpp index ac3cedf186..df256424b8 100644 --- a/unittests/Support/BlockFrequencyTest.cpp +++ b/unittests/Support/BlockFrequencyTest.cpp @@ -71,6 +71,15 @@ TEST(BlockFrequencyTest, ProbabilityCompare) { EXPECT_TRUE(B > C); EXPECT_FALSE(B <= C); EXPECT_TRUE(B >= C); + + BranchProbability BigZero(0, UINT32_MAX); + BranchProbability BigOne(UINT32_MAX, UINT32_MAX); + EXPECT_FALSE(BigZero == BigOne); + EXPECT_TRUE(BigZero != BigOne); + EXPECT_TRUE(BigZero < BigOne); + EXPECT_FALSE(BigZero > BigOne); + EXPECT_TRUE(BigZero <= BigOne); + EXPECT_FALSE(BigZero >= BigOne); } } |