Skip to content

Commit 8984155

Browse files
committed
Add tests
1 parent f5a4496 commit 8984155

File tree

1 file changed

+3
-3
lines changed
  • tests/test-dirs/let-punning.t

1 file changed

+3
-3
lines changed

tests/test-dirs/let-punning.t/run.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Test Merlin's behavior in the presense of let-punning
22

3-
$ function type_enclosing {
3+
$ type_enclosing () {
44
> $MERLIN single type-enclosing -position "$1" -filename test.ml < test.ml | jq '.value[0].type' -r
55
> }
66

7-
$ function locate {
7+
$ locate () {
88
> res=$($MERLIN single locate -position "$1" -filename test.ml < test.ml)
99
> if jq -e '.value | type == "string"' <<< "$res" > /dev/null; then
1010
> # an error occurred, so print the error
@@ -16,7 +16,7 @@ Test Merlin's behavior in the presense of let-punning
1616
> fi
1717
> }
1818

19-
$ function occurrences {
19+
$ occurrences () {
2020
> res=$($MERLIN single occurrences -identifier-at "$1" -filename test.ml < test.ml)
2121
> jq -c .value[] <<< "$res" | while read -r occurrence; do
2222
> line=$(echo "$occurrence" | jq .start.line)

0 commit comments

Comments
 (0)