Skip to content

Commit 2ba04eb

Browse files
committed
-fixed tests
1 parent a6bd296 commit 2ba04eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/org/sosy_lab/java_smt/test/FloatingPointSMTLIB2GeneratorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ public void testRound() {
462462
String actualResult = String.valueOf(Generator.getLines());
463463

464464
String expectedResult =
465-
"(declare-const a (_ FloatingPoint 8 24))\n" + "(assert (fp.eq a (fp.round RNE a)))\n";
465+
"(declare-const a (_ FloatingPoint 8 24))\n" + "(assert (fp.eq a (fp.roundToIntegral RNE "
466+
+ "a)))\n";
466467

467468
assertThat(actualResult).isEqualTo(expectedResult);
468469
}

src/org/sosy_lab/java_smt/test/StringSMTLIB2GeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public void testToString() {
250250
String actualResult = String.valueOf(Generator.getLines());
251251

252252
String expectedResult =
253-
"(declare-const result String)\n" + "(assert (= (int.to_str 42) result))\n";
253+
"(declare-const result String)\n" + "(assert (= (str.from_int 42) result))\n";
254254

255255
assertThat(actualResult).isEqualTo(expectedResult);
256256
}

0 commit comments

Comments
 (0)