Skip to content

Commit 3e04797

Browse files
author
Florent Ferrari
committed
updated tests
1 parent 397f363 commit 3e04797

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

hkmc2/shared/src/test/mlscript/backlog/Lifter.mls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ fun f =
199199
M.g
200200
//│ ═══[WARNING] Modules are not yet lifted.
201201
//│ ╔══[COMPILATION ERROR] No definition found in scope for: member:M (class hkmc2.semantics.BlockMemberSymbol)
202-
//│ ║ l.192: module M with
202+
//│ ║ l.195: module M with
203203
//│ ╙── ^

hkmc2/shared/src/test/mlscript/basics/Records.mls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ let rcd = new with
9292
bar =
9393
"..."
9494
//│ ╔══[ERROR] Name not found: foo
95-
//│ ║ l.88: foo = 1
95+
//│ ║ l.91: foo = 1
9696
//│ ╙── ^^^
9797
//│ ╔══[ERROR] Name not found: bar
98-
//│ ║ l.89: bar =
98+
//│ ║ l.92: bar =
9999
//│ ╙── ^^^
100100
//│ rcd = $anon
101101

@@ -170,14 +170,14 @@ display(x: 88, y: 99, i: 0)
170170
:todo
171171
t("group")
172172
//│ ╔══[ERROR] Expected 2 arguments, got 1
173-
//│ ║ l.168: t("group")
173+
//│ ║ l.171: t("group")
174174
//│ ╙── ^^^^^^^^^
175175
//│ ═══[RUNTIME ERROR] Error: Function 't' expected 2 arguments but got 1
176176

177177
:todo
178178
t("group")
179179
//│ ╔══[ERROR] Expected 2 arguments, got 1
180-
//│ ║ l.175: t("group")
180+
//│ ║ l.178: t("group")
181181
//│ ╙── ^^^^^^^^^
182182
//│ ═══[RUNTIME ERROR] Error: Function 't' expected 2 arguments but got 1
183183

hkmc2/shared/src/test/mlscript/codegen/PartialApps.mls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ let j = _.x
9999
let j = _.x(123)
100100
//│ ═══[ERROR] Illegal position for '_' placeholder.
101101
//│ ╔══[COMPILATION ERROR] No definition found in scope for: j (class hkmc2.semantics.VarSymbol)
102-
//│ ║ l.96: let j = _.x(123)
102+
//│ ║ l.99: let j = _.x(123)
103103
//│ ╙── ^
104104
//│ ═══[RUNTIME ERROR] ReferenceError: j is not defined
105105

@@ -147,10 +147,10 @@ _ - 2 <| 1
147147
1
148148
|> _ - 2
149149
//│ ╔══[PARSE ERROR] Expected end of input; found '_' keyword instead
150-
//│ ║ l.142: |> _ - 2
150+
//│ ║ l.148: |> _ - 2
151151
//│ ╙── ^
152152
//│ ╔══[WARNING] Pure expression in statement position
153-
//│ ║ l.141: 1
153+
//│ ║ l.147: 1
154154
//│ ╙── ^
155155
//│ = [function pipeInto]
156156

0 commit comments

Comments
 (0)