Skip to content

Commit 33c909b

Browse files
committed
Add unit test for the printing of smt_get_value_commandt
Because this had previously been missed.
1 parent ce2680b commit 33c909b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

unit/solvers/smt2_incremental/smt_to_smt2_string.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ TEST_CASE(
6969
CHECK(smt_to_smt2_string(smt_exit_commandt{}) == "(exit)");
7070
}
7171

72+
TEST_CASE(
73+
"Test smt_get_value_commandt to string conversion",
74+
"[core][smt2_incremental]")
75+
{
76+
CHECK(
77+
smt_to_smt2_string(smt_get_value_commandt{
78+
smt_identifier_termt{"foo", smt_bool_sortt{}}}) == "(get-value |foo|)");
79+
}
80+
7281
TEST_CASE(
7382
"Test smt_push_commandt to string conversion",
7483
"[core][smt2_incremental]")

0 commit comments

Comments
 (0)