Skip to content

Commit 4e8c4ef

Browse files
committed
type 1 was checking for modules with duplicate identifiers, which is not an error
1 parent 81c24d8 commit 4e8c4ef

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/test/scala/ParserSpec.scala

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,6 @@ class ParserSpec extends AnyFlatSpec {
211211
val instantiatedModules = UclidMain.instantiateModules(UclidMain.Config(), fileModules, lang.Identifier("main"))
212212
assert (instantiatedModules.size == 1)
213213
}
214-
"test-type1.ucl" should "not parse successfully." in {
215-
try {
216-
val filename = "test/test-type1.ucl"
217-
val fileModules = UclidMain.compile(ConfigCons.createConfig(filename), lang.Identifier("main"))
218-
assert (fileModules.size == 1)
219-
}
220-
catch {
221-
case p : Utils.ParserErrorList =>
222-
assert (p.errors.size == 1)
223-
assert (p.errors(0)._1.contains("Redeclaration of identifier 'test'."))
224-
}
225-
}
226214
"test-typechecker-0.ucl" should "not parse successfully." in {
227215
try {
228216
val fileModules = UclidMain.compile(ConfigCons.createConfig("test/test-typechecker-0.ucl"), lang.Identifier("main"))

0 commit comments

Comments
 (0)