We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 763b906 commit a0cff82Copy full SHA for a0cff82
unit/util/interval/add.cpp
@@ -43,6 +43,17 @@ SCENARIO("add interval domain", "[core][analyses][interval][add]")
43
REQUIRE(V(result.get_lower()) == 8);
44
REQUIRE(V(result.get_upper()) == 12);
45
}
46
+
47
+ AND_WHEN("Incrementing the interval")
48
+ {
49
+ const auto incremented = left.increment();
50
51
+ THEN("The result is correct")
52
53
+ REQUIRE(V(incremented.get_lower()) == 3);
54
+ REQUIRE(V(incremented.get_upper()) == 5);
55
+ }
56
57
58
59
WHEN("One contains infinite [2,4]+[6,INF]")
0 commit comments