Skip to content

Commit

Permalink
Added test cases for checking feature names
Browse files Browse the repository at this point in the history
  • Loading branch information
SundermannC committed May 16, 2024
1 parent 3a70b75 commit 0e7838d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/de/vill/parsing/ParsingTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ public class ParsingTests {

private static final String NESTED_SUB_COMPOSITION_ROOT = NESTED_MODEL_PREFIX + "nested_sub.uvl";

// Name convention models
private static final String WILD_ALLOWED = TEST_MODEL_PREFIX + "wild-names.uvl";

@Test
void testBooleanModel() throws Exception {
testModelParsing(SIMPLE_BOOLEAN);
Expand Down Expand Up @@ -139,6 +142,11 @@ void checkCompositionModels() throws Exception {
testModelParsing(NESTED_SUB_COMPOSITION_ROOT);
}

@Test
void checkNameConventions() throws Exception {
testModelParsing(WILD_ALLOWED);
}

private void testModelParsing(String path) {
testModelParsing(path, true);
}
Expand Down
7 changes: 7 additions & 0 deletions src/test/resources/parsing/wild-names.uvl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
features
"Fun_d"
"Fun/"
"Fun{"
"Fun}"
"Fun["
"Fun]"

0 comments on commit 0e7838d

Please sign in to comment.