Skip to content

Commit 3d7d6c7

Browse files
committed
Fix tests
1 parent b6bcd53 commit 3d7d6c7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pkl-core/src/main/java/org/pkl/core/runtime/PowerAssertions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ private static boolean isLiteral(Node truffleNode, org.pkl.parser.syntax.Node pa
147147
// Assumption: if we have both ConstantValueNode, and the parser node is
148148
// UnqualifiedAccessExpr with arguments, then this must be a `List()`, `Map()`, etc.
149149
//
150-
// Note: a local property whose value is a constant will also turn into a ConstantValueNode.
150+
// Note: reading a local property whose value is a constant will also turn into a
151+
// ConstantValueNode.
151152
return unqualifiedAccessExpr.getArgumentList() != null;
152153
}
153154
return true;

pkl-core/src/test/files/LanguageSnippetTests/output/errors/power/typeConstraints9.err

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ x | IntSeq(1, 5).toList().contains(this)
4646
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4747
at typeConstraints9#foo (file:///$snippetsDir/input/errors/power/typeConstraints9.pkl)
4848

49-
x | ) = 10
50-
^^
49+
xx | ) = 10
50+
^^
5151
at typeConstraints9#foo (file:///$snippetsDir/input/errors/power/typeConstraints9.pkl)
5252

5353
xxx | renderer.renderDocument(value)

pkl-core/src/test/files/LanguageSnippetTests/output/errors/power/typeConstraints18.err renamed to pkl-core/src/test/files/LanguageSnippetTests/output/errors/power/typeConstraints9a.err

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Value: 10
5252

5353
x | IntSeq(num, 5).toList().contains(this)
5454
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55-
at typeConstraints18#foo (file:///$snippetsDir/input/errors/power/typeConstraints18.pkl)
55+
at typeConstraints9a#foo (file:///$snippetsDir/input/errors/power/typeConstraints9a.pkl)
5656

5757
xx | ) = 10
5858
^^
59-
at typeConstraints18#foo (file:///$snippetsDir/input/errors/power/typeConstraints18.pkl)
59+
at typeConstraints9a#foo (file:///$snippetsDir/input/errors/power/typeConstraints9a.pkl)
6060

6161
xxx | renderer.renderDocument(value)
6262
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)