Skip to content

Commit 9833a38

Browse files
committed
Make tests compatible with uncurried mode by making partial application explicit.
1 parent 1960ac5 commit 9833a38

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

analysis/tests/src/Completion.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ let ff = (~opt1=0, ~a, ~b, (), ~opt2=0, (), ~c) => a + b + c + opt1 + opt2
319319

320320
type callback = (~a: int) => int
321321

322-
let withCallback: (~b: int) => callback = (~b, ~a) => a + b
322+
let withCallback: (~b: int) => callback = (~b) => { (); (~a) => a + b }
323323

324324
// withCallback(~
325325
// ^com

analysis/tests/src/CompletionFunctionArguments.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let tLocalVar = false
1717
// let _ = someFn(~isOff=)
1818
// ^com
1919

20-
let _ = someFn(
20+
let _ = @res.partial someFn(
2121
~isOn={
2222
// switch someFn(~isOn=)
2323
// ^com

analysis/tests/src/Highlight.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let foo = x => x.T.someField
6969

7070
let add = (~hello as x, ~world) => x + world
7171

72-
let _ = add(~hello=3)
72+
let _ = @res.partial add(~hello=3)
7373

7474
let _ = <div scale="abc"> <div /> </div>
7575

analysis/tests/src/Xform.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ let bar = () => {
6363
}
6464
//^xfm
6565
}
66-
Inner.foo(1)
66+
@res.partial Inner.foo(1)
6767
}

analysis/tests/src/expected/CompletionFunctionArguments.res.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Path someFn
6363
}]
6464

6565
Complete src/CompletionFunctionArguments.res 21:27
66-
posCursor:[21:27] posNoWhite:[21:26] Found expr:[19:8->25:1]
67-
Pexp_apply ...[19:8->19:14] (~isOn20:3->20:7=...[21:7->23:8])
66+
posCursor:[21:27] posNoWhite:[21:26] Found expr:[19:21->25:1]
67+
Pexp_apply ...[19:21->19:27] (~isOn20:3->20:7=...[21:7->23:8])
6868
posCursor:[21:27] posNoWhite:[21:26] Found expr:[21:7->23:8]
6969
posCursor:[21:27] posNoWhite:[21:26] Found expr:[21:7->21:28]
7070
posCursor:[21:27] posNoWhite:[21:26] Found expr:[21:14->21:28]

analysis/tests/src/expected/Highlight.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Variable: x [69:21->69:22]
8181
Variable: world [69:24->69:30]
8282
Lident: x 69:35 Variable
8383
Lident: world 69:39 Variable
84-
Lident: add 71:8 Variable
84+
Lident: add 71:21 Variable
8585
JsxTag <: 73:8
8686
Lident: div 73:9 JsxLowercase
8787
Lident: div 73:36 JsxLowercase

0 commit comments

Comments
 (0)