Skip to content

Commit de87848

Browse files
committed
update test output
1 parent 3312980 commit de87848

13 files changed

+26
-26
lines changed

tests/build_tests/super_errors/expected/arity_mismatch.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
2 │ let makeVariables = makeVar(~f=f => f)
77
3 │
88

9-
Can't call this function:
10-
- It takes 1 unlabelled argument, but is called with just 0
9+
This function call is incorrect:
10+
- It takes 1 unlabelled argument, but is called with just 0
1111

1212
The function has type:
1313
(~f: 'a => 'a, unit) => int

tests/build_tests/super_errors/expected/arity_mismatch2.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
2 │ let makeVariables = makeVar(1, 2, 3)
77
3 │
88

9-
Can't call this function:
10-
- It takes just 2 unlabelled arguments, but is called with 3
9+
This function call is incorrect:
10+
- It takes just 2 unlabelled arguments, but is called with 3
1111

1212
The function has type:
1313
('a, unit) => int

tests/build_tests/super_errors/expected/method_arity_mismatch.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
4 │ }
99
5 │
1010

11-
Can't call this function.
11+
This function call is incorrect.
1212
The function has type:
1313
(int, int) => unit
1414

15-
It is called with 1 argument but it requires 2.
15+
It is called with 1 argument but requires 2.

tests/build_tests/super_errors/expected/moreArguments1.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
2 │ let y = x(~a=2) + 2
77
3 │
88

9-
Can't call this function:
10-
- Missing required arguments: ~b
9+
This function call is incorrect:
10+
- Missing arguments that must be provided: ~b
1111

1212
The function has type:
1313
(~a: int, ~b: int) => int

tests/build_tests/super_errors/expected/moreArguments2.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
2 │ let y = x(2) + 2
77
3 │
88

9-
Can't call this function:
10-
- It takes 2 unlabelled arguments, but is called with just 1
9+
This function call is incorrect:
10+
- It takes 2 unlabelled arguments, but is called with just 1
1111

1212
The function has type:
1313
(int, int) => int

tests/build_tests/super_errors/expected/moreArguments3.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
2 │ let y = x(2) + 2
77
3 │
88

9-
Can't call this function:
10-
- It takes 4 unlabelled arguments, but is called with just 1
9+
This function call is incorrect:
10+
- It takes 4 unlabelled arguments, but is called with just 1
1111

1212
The function has type:
1313
(int, int, 'a, 'b) => int

tests/build_tests/super_errors/expected/moreArguments4.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
2 │ let y = x(2) + 2
77
3 │
88

9-
Can't call this function:
10-
- Missing required arguments: ~d, ~c, ~b
9+
This function call is incorrect:
10+
- Missing arguments that must be provided: ~d, ~c, ~b
1111

1212
The function has type:
1313
(int, ~b: int, ~c: 'a, ~d: 'b) => int

tests/build_tests/super_errors/expected/moreArguments5.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
5 │ let y = x(2).Sub.a
88
6 │
99

10-
Can't call this function:
11-
- It takes 4 unlabelled arguments, but is called with just 1
10+
This function call is incorrect:
11+
- It takes 4 unlabelled arguments, but is called with just 1
1212

1313
The function has type:
1414
(int, 'a, 'b, 'c) => Sub.a

tests/build_tests/super_errors/expected/opt_args_arity.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
2 │ let x = f(42)
77
3 │
88

9-
Can't call this function:
10-
- It takes 2 unlabelled arguments, but is called with just 1
9+
This function call is incorrect:
10+
- It takes 2 unlabelled arguments, but is called with just 1
1111

1212
The function has type:
1313
(~a: int=?, int, int) => int

tests/build_tests/super_errors/expected/partial_app.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
5 │ f(1, 2)
88
6 │
99

10-
Can't call this function:
11-
- It takes 3 unlabelled arguments, but is called with just 2
10+
This function call is incorrect:
11+
- It takes 3 unlabelled arguments, but is called with just 2
1212

1313
The function has type:
1414
(int, int, int) => int

0 commit comments

Comments
 (0)