Skip to content
Snippets Groups Projects
Commit c57c1f18 authored by Jan Gruteser's avatar Jan Gruteser
Browse files

simple label tests

parent 1e91c11d
Branches
Tags
No related merge requests found
......@@ -148,4 +148,30 @@ public class ConstantsTest {
compare(expected, machine);
}
@Test
public void testPropertiesDescPragma() throws Exception {
String machine = "MACHINE test\n"
+ "CONSTANTS n\n"
+ "PROPERTIES n = 1 /*@desc description*/\n"
+ "END";
String expected = "---- MODULE test----\n"
+ "n == 1\n"
+ "======";
compare(expected, machine);
}
@Test
public void testPropertiesLabelAndDescPragma() throws Exception {
String machine = "MACHINE test\n"
+ "CONSTANTS n\n"
+ "PROPERTIES /*@label lbl1 */ n = 1 /*@desc description*/\n"
+ "END";
String expected = "---- MODULE test----\n"
+ "n == 1\n"
+ "======";
compare(expected, machine);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment