From f68860bbe29064318869cca0eaa4b2a2f39bddac Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 10 Dec 2024 23:42:29 +0000 Subject: Remove redundant test --- .../parser/ParserStructDefinitionTests.java | 25 ---------------------- 1 file changed, 25 deletions(-) (limited to 'src/test/java') 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 @@ -77,31 +77,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 = """ -- cgit v1.2.3