Skip to content

Commit

Permalink
tests: more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Feb 14, 2024
1 parent b292417 commit e3a1803
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 88 deletions.
6 changes: 3 additions & 3 deletions tests/test-dirs/recovery.t
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The hole is filled with merlin.hole.
"type": "parser",
"sub": [],
"valid": true,
"message": "Syntax error, expecting expr"
"message": "Syntax error, expecting fun_expr"
}
],
"notifications": []
Expand Down Expand Up @@ -67,7 +67,7 @@ The hole is filled with merlin.hole.
"valid": true,
"message": "Signature mismatch:
Modules do not match: sig end is not included in sig val f : int -> unit end
The value `f' is required but not provided
The value f is required but not provided
File \"module_recovery.ml\", line 1, characters 15-34: Expected declaration"
},
{
Expand Down Expand Up @@ -118,7 +118,7 @@ penalty should prevent it.
"type": "parser",
"sub": [],
"valid": true,
"message": "Syntax error, expecting expr"
"message": "Syntax error, expecting fun_expr"
}
],
"notifications": []
Expand Down
2 changes: 1 addition & 1 deletion tests/test-dirs/type-enclosing/inside-tydecl.t
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test
"line": 1,
"col": 20
},
"type": "type t1 = t1",
"type": "type t1 = 'a",
"tail": "no"
},
{
Expand Down
88 changes: 4 additions & 84 deletions tests/test-dirs/type-enclosing/te-413-features.t
Original file line number Diff line number Diff line change
Expand Up @@ -108,51 +108,11 @@ Module types substitutions
}
]

FIXME: this doesn't work anymore with the new occurrences backend
$ $MERLIN single occurrences -identifier-at 6:19 \
> -filename mtsubst.ml < mtsubst.ml |
> tr '\n' ' ' | jq '.value'
[
{
"start": {
"line": 2,
"col": 14
},
"end": {
"line": 2,
"col": 15
}
},
{
"start": {
"line": 3,
"col": 12
},
"end": {
"line": 3,
"col": 13
}
},
{
"start": {
"line": 3,
"col": 17
},
"end": {
"line": 3,
"col": 18
}
},
{
"start": {
"line": 6,
"col": 19
},
"end": {
"line": 6,
"col": 20
}
}
]
[]

$ cat >mtsubst.ml <<EOF
> module type ENDO = sig
Expand Down Expand Up @@ -196,48 +156,8 @@ Module types substitutions
}
]

FIXME: this doesn't work anymore with the new occurrences backend
$ $MERLIN single occurrences -identifier-at 6:19 \
> -filename mtsubst.ml < mtsubst.ml |
> tr '\n' ' ' | jq '.value'
[
{
"start": {
"line": 2,
"col": 14
},
"end": {
"line": 2,
"col": 15
}
},
{
"start": {
"line": 3,
"col": 12
},
"end": {
"line": 3,
"col": 13
}
},
{
"start": {
"line": 3,
"col": 17
},
"end": {
"line": 3,
"col": 18
}
},
{
"start": {
"line": 6,
"col": 19
},
"end": {
"line": 6,
"col": 20
}
}
]
[]

0 comments on commit e3a1803

Please sign in to comment.