summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java1
-rw-r--r--src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java
index 737c7db..1bb84d1 100644
--- a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java
+++ b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java
@@ -23,6 +23,7 @@ public class TypeCheckerNamespaceTests {
new UntypedStructDefinitionNode(
"X",
List.of(),
+ "",
NullSource.INSTANCE
)
),
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java
index 6cd6732..117bce4 100644
--- a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java
+++ b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java
@@ -27,6 +27,7 @@ public class TypeCheckerStructDefinitionTests {
var untyped = new UntypedStructDefinitionNode(
"X",
List.of(),
+ "",
NullSource.INSTANCE
);
var context = TypeCheckerContextArb.namespaceContext(NamespaceName.of("a", "b"));
@@ -53,6 +54,7 @@ public class TypeCheckerStructDefinitionTests {
new UntypedStructFieldDefinitionNode("a", UntypedArb.typeLevelReference("Int32"), NullSource.INSTANCE),
new UntypedStructFieldDefinitionNode("b", UntypedArb.typeLevelReference("Int64"), NullSource.INSTANCE)
),
+ "",
NullSource.INSTANCE
);
var context = TypeCheckerContextArb.namespaceContext(NamespaceName.of("a", "b"));
@@ -102,6 +104,7 @@ public class TypeCheckerStructDefinitionTests {
List.of(
new UntypedStructFieldDefinitionNode("value", UntypedArb.typeLevelReference("Y"), NullSource.INSTANCE)
),
+ "",
NullSource.INSTANCE
),
new UntypedStructDefinitionNode(
@@ -109,6 +112,7 @@ public class TypeCheckerStructDefinitionTests {
List.of(
new UntypedStructFieldDefinitionNode("value", UntypedArb.typeLevelReference("Int32"), NullSource.INSTANCE)
),
+ "",
NullSource.INSTANCE
)
),