diff --git a/core/src/test/java/org/lflang/tests/LFParsingTest.java b/core/src/test/java/org/lflang/tests/LFParsingTest.java index 0029bc970d..a170895db3 100644 --- a/core/src/test/java/org/lflang/tests/LFParsingTest.java +++ b/core/src/test/java/org/lflang/tests/LFParsingTest.java @@ -35,9 +35,9 @@ public void testLexingEmptyTargetProperties() throws Exception { @Test public void testParsingTargetPropertyAsString() throws Exception { - assertNoParsingErrorsIn("target C { \"a c time reactor\": 2 };"); - assertNoParsingErrorsIn("target C { \"reactor\": 2 };"); - expectParsingErrorIn("target C { reactor: 2 };"); + assertNoParsingErrorsIn("target C { \"a c time reactor\": 2 }; reactor Foo{}"); + assertNoParsingErrorsIn("target C { \"reactor\": 2 }; reactor Foo{}"); + expectParsingErrorIn("target C { reactor: 2 }; reactor Foo{}"); // array elements // assertNoParsingErrorsIn("target C {x:[ ]}; \nreactor Foo {}");