File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,28 @@ class ParserSpec extends AnyFlatSpec {
258258 assert (p.errors.size == 5 )
259259 }
260260 }
261+ " test-multiple-init-blocks.ucl" should " not parse successfully." in {
262+ try {
263+ val fileModules = UclidMain .compile(ConfigCons .createConfig(" test/test-multiple-init-blocks.ucl" ), lang.Identifier (" main" ))
264+ // should never get here.
265+ assert (false );
266+ }
267+ catch {
268+ case p : Utils .ParserErrorList =>
269+ assert (p.errors.size == 1 )
270+ }
271+ }
272+ " test-multiple-next-blocks.ucl" should " not parse successfully." in {
273+ try {
274+ val fileModules = UclidMain .compile(ConfigCons .createConfig(" test/test-multiple-next-blocks.ucl" ), lang.Identifier (" main" ))
275+ // should never get here.
276+ assert (false );
277+ }
278+ catch {
279+ case p : Utils .ParserErrorList =>
280+ assert (p.errors.size == 1 )
281+ }
282+ }
261283 " test-typechecker-6.ucl" should " not parse successfully." in {
262284 try {
263285 val fileModules = UclidMain .compile(ConfigCons .createConfig(" test/test-typechecker-6.ucl" ), lang.Identifier (" main" ))
You can’t perform that action at this time.
0 commit comments