diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-12-10 23:42:29 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-12-10 23:42:29 +0000 |
| commit | f68860bbe29064318869cca0eaa4b2a2f39bddac (patch) | |
| tree | 2159fbb75c76f472dfd7d6130477a81d5f58e8a1 /src/test/java | |
| parent | e38d792b54d9116c27b7d61fb756b68c12b0b080 (diff) | |
Remove redundant test
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java b/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java index b17cd839..f5a77ab3 100644 --- a/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java +++ b/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java @@ -78,31 +78,6 @@ public class ParserStructDefinitionTests { } @Test - public void canParseStructWithPositionalFieldFollowedByNonPositionalFields() { - var source = """ - struct X(name: String, accessLevel: AccessLevel) {} - """; - - var node = parseString(source, Parser::parseNamespaceStatement); - - assertThat( - node, - isUntypedStructDefinitionNode() - .withName("X") - .withFields(isSequence( - isUntypedStructFieldDefinitionNode() - .withName("name") - .withType(isUntypedTypeLevelReferenceNode("String")) - .withIsPositional(true), - isUntypedStructFieldDefinitionNode() - .withName("accessLevel") - .withType(isUntypedTypeLevelReferenceNode("AccessLevel")) - .withIsPositional(true) - )) - ); - } - - @Test public void mixOfPositionalAndNonPositionalFieldsIsNotAllowed() { var source = """ struct X(name: String, .accessLevel: AccessLevel) {} |
