Skip to content

Commit 3a1428f

Browse files
committed
Adding constants and value sets
Initial unit tests - currently fails
1 parent 7b9f559 commit 3a1428f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

unit/analyses/variable-sensitivity/constant_abstract_value/expression_evaluation.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,18 @@ SCENARIO(
6767
}
6868
}
6969
}
70+
GIVEN("adding a constant and a value set")
71+
{
72+
WHEN("1 + { 2 }")
73+
{
74+
auto op1 = make_constant(val1, environment, ns);
75+
auto op2 = make_value_set(val2, environment, ns);
76+
auto result = add_as_value_set(op1, op2, environment, ns);
77+
78+
THEN("= { 3 }")
79+
{
80+
EXPECT(result, {val3});
81+
}
82+
}
83+
}
7084
}

0 commit comments

Comments
 (0)