Skip to content

Commit 0775ef8

Browse files
Remove tests that use formerly illegal variable names and expect and exception
1 parent f496000 commit 0775ef8

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,6 @@ public void testIncompatibleEnumeration() {
159159
assertThrows(IllegalArgumentException.class, () -> emgr.equivalence(blue, circle));
160160
}
161161

162-
@Test
163-
public void testInvalidName() {
164-
assertThrows(IllegalArgumentException.class, () -> emgr.declareEnumeration("true", "X", "Y"));
165-
EnumerationFormulaType colorType = emgr.declareEnumeration("ColorE", "Blue", "White");
166-
assertThrows(IllegalArgumentException.class, () -> emgr.makeVariable("true", colorType));
167-
}
168-
169162
private static class ConstantsVisitor extends DefaultFormulaVisitor<TraversalProcess> {
170163

171164
final Set<String> constants = new HashSet<>();

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -244,22 +244,6 @@ public void testDeclareAndCallUFWithBooleanAndBVTypes() {
244244
}
245245
}
246246

247-
@SuppressWarnings("CheckReturnValue")
248-
@Test
249-
public void testDeclareAndCallUFWithIntWithUnsupportedName() {
250-
requireIntegers();
251-
assertThrows(
252-
IllegalArgumentException.class,
253-
() ->
254-
fmgr.declareAndCallUF(
255-
"|Func|", FormulaType.IntegerType, ImmutableList.of(imgr.makeNumber(1))));
256-
assertThrows(
257-
IllegalArgumentException.class,
258-
() ->
259-
fmgr.declareUF(
260-
"|Func|", FormulaType.IntegerType, ImmutableList.of(FormulaType.IntegerType)));
261-
}
262-
263247
@Test
264248
public void testDeclareAndCallUFWithBv() {
265249
requireBitvectors();
@@ -276,26 +260,6 @@ public void testDeclareAndCallUFWithBv() {
276260
}
277261
}
278262

279-
@Test
280-
@SuppressWarnings("CheckReturnValue")
281-
public void testDeclareAndCallUFWithBvWithUnsupportedName() {
282-
requireBitvectors();
283-
assertThrows(
284-
IllegalArgumentException.class,
285-
() ->
286-
fmgr.declareAndCallUF(
287-
"|Func|",
288-
FormulaType.getBitvectorTypeWithSize(4),
289-
ImmutableList.of(bvmgr.makeBitvector(4, 1))));
290-
assertThrows(
291-
IllegalArgumentException.class,
292-
() ->
293-
fmgr.declareUF(
294-
"|Func|",
295-
FormulaType.getBitvectorTypeWithSize(4),
296-
ImmutableList.of(FormulaType.getBitvectorTypeWithSize(4))));
297-
}
298-
299263
@Test
300264
public void testDeclareAndCallUFWithTypedArgs() {
301265
requireBooleanArgument();

0 commit comments

Comments
 (0)