Skip to content

Commit 6b18557

Browse files
committed
fixed tests
1 parent ce8e2b7 commit 6b18557

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

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

+1-17
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
import org.sosy_lab.java_smt.api.StringFormula;
2525
import org.sosy_lab.java_smt.basicimpl.Generator;
2626

27-
@SuppressWarnings({"CheckReturnValue", "ReturnValueIgnored"})
27+
@SuppressWarnings({"CheckReturnValue", "ReturnValueIgnored","EqualsIncompatibleType"})
2828
public class SMTLIB2StringTest extends SolverBasedTest0.ParameterizedSolverBasedTest0 {
29-
3029
@Before
3130
public void setUp() {
3231
assume().that(smgr).isNotNull();
@@ -246,10 +245,6 @@ public void testRegexInRe()
246245

247246
BooleanFormula actualResult = mgr.universalParseFromString(x);
248247

249-
StringFormula a = smgr.makeVariable("a");
250-
RegexFormula regex = smgr.concat(smgr.makeRegex("a"), smgr.makeRegex("b"));
251-
BooleanFormula regexMatch = smgr.in(a, regex);
252-
253248
assertThat(
254249
actualResult.equals(
255250
"(str.in_re a (re.++ (str.to_re \"\\Qa\\E\") (str.to_re " + "\"\\Qb\\E\")))"));
@@ -293,10 +288,6 @@ public void testRegexConcat()
293288

294289
BooleanFormula actualResult = mgr.universalParseFromString(x);
295290

296-
StringFormula a = smgr.makeVariable("a");
297-
RegexFormula regex = smgr.concat(smgr.makeRegex("a"), smgr.makeRegex("b"));
298-
BooleanFormula regexMatch = smgr.in(a, regex);
299-
300291
assertThat(
301292
actualResult.equals(
302293
"(str.in_re a (re.++ (str.to_re \"\\Qa\\E\") (str.to_re " + "\"\\Qb\\E\")))"));
@@ -325,10 +316,6 @@ public void testRegexClosure()
325316

326317
BooleanFormula actualResult = mgr.universalParseFromString(x);
327318

328-
StringFormula a = smgr.makeVariable("a");
329-
RegexFormula regex = smgr.closure(smgr.makeRegex("a"));
330-
BooleanFormula regexMatch = smgr.in(a, regex);
331-
332319
assertThat(actualResult.equals("(str.in_re a (re.* (str.to_re \"\\Qa\\E\")))"));
333320
}
334321

@@ -356,9 +343,6 @@ public void testRegexIntersection()
356343

357344
BooleanFormula actualResult = mgr.universalParseFromString(x);
358345

359-
StringFormula a = smgr.makeVariable("a");
360-
RegexFormula regex = smgr.intersection(smgr.makeRegex("a"), smgr.makeRegex("b"));
361-
BooleanFormula regexMatch = smgr.in(a, regex);
362346

363347
assertThat(
364348
actualResult.equals(

0 commit comments

Comments
 (0)