diff options
Diffstat (limited to 'src/test/java/org/shedlang/compiler/parser')
| -rw-r--r-- | src/test/java/org/shedlang/compiler/parser/ParserEffectParamTests.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/org/shedlang/compiler/parser/ParserEffectParamTests.java b/src/test/java/org/shedlang/compiler/parser/ParserEffectParamTests.java new file mode 100644 index 00000000..dfd970bf --- /dev/null +++ b/src/test/java/org/shedlang/compiler/parser/ParserEffectParamTests.java @@ -0,0 +1,18 @@ +package org.shedlang.compiler.parser; + +import org.junit.jupiter.api.Test; + +import static org.shedlang.compiler.ast.untyped.UntypedNodeMatchers.isUntypedEffectParamNode; +import static org.shedlang.compiler.parser.ParserTesting.parseString; +import static org.zwobble.precisely.AssertThat.assertThat; + +public class ParserEffectParamTests { + @Test + public void canParseEffectParam() { + var source = "!E"; + + var node = parseString(source, Parser::parseTypeLevelParam); + + assertThat(node, isUntypedEffectParamNode("E")); + } +} |
