Skip to content

Commit

Permalink
Promote tests that I neglected to promote before
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Roberts <[email protected]>
  • Loading branch information
ncik-roberts committed Nov 30, 2023
1 parent 848753a commit e4bb8cf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tests/test-dirs/type-enclosing/issue1564.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ On `let |y = x.kind`
Verbosity 1 shows the actual type definition of Kind.t
$ $MERLIN single type-enclosing -position 8:4 -verbosity 1 \
> -filename ./main.ml < ./main.ml | tr '\r\n' ' ' | jq ".value[0].type"
"type t = A | B"
"type t : immediate = A | B"

On `let y = x.k|ind`
$ $MERLIN single type-enclosing -position 8:11 -verbosity 0 \
Expand All @@ -40,7 +40,7 @@ On `let z = { kind = B }.k|ind`
On `let z = { kind = B }.k|ind`
$ $MERLIN single type-enclosing -position 9:22 -verbosity 1 \
> -filename ./main.ml < ./main.ml | tr '\r\n' ' ' | jq ".value[0].type"
"type t = A | B"
"type t : immediate = A | B"

On `let x = { k|ind = A }`
$ $MERLIN single type-enclosing -position 7:12 -verbosity 0 \
Expand Down
6 changes: 3 additions & 3 deletions tests/test-dirs/type-enclosing/objects.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"line": 2,
"col": 24
},
"type": "int list type 'a list = [] | (::) of 'a * 'a list",
"type": "int list type 'a list : value = [] | (::) of 'a * 'a list",
"tail": "no"
},
{
Expand Down Expand Up @@ -85,7 +85,7 @@
"line": 14,
"col": 5
},
"type": "type unit = ()",
"type": "type unit : immediate = ()",
"tail": "no"
}
]
Expand Down Expand Up @@ -143,7 +143,7 @@
"line": 14,
"col": 16
},
"type": "type unit = ()",
"type": "type unit : immediate = ()",
"tail": "no"
}
]
Expand Down
8 changes: 4 additions & 4 deletions tests/test-dirs/type-enclosing/record.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"line": 8,
"col": 9
},
"type": "type t = { mutable b : float; }",
"type": "type t : value = { mutable b : float; }",
"tail": "no"
},
{
Expand All @@ -126,7 +126,7 @@
"line": 8,
"col": 17
},
"type": "type unit = ()",
"type": "type unit : immediate = ()",
"tail": "no"
}
]
Expand Down Expand Up @@ -185,7 +185,7 @@ FIXME: The following results are not entirely satisfying (`foo.Bar -> foo` could
"line": 12,
"col": 26
},
"type": "type foo = Bar of { baz : unit; }",
"type": "type foo : value = Bar of { baz : unit; }",
"tail": "no"
}
]
Expand Down Expand Up @@ -243,7 +243,7 @@ FIXME: The following results are not entirely satisfying (`foo.Bar -> foo` could
"line": 12,
"col": 26
},
"type": "type Bar = { baz : unit; }",
"type": "type Bar : value = { baz : unit; }",
"tail": "no"
}
]
4 changes: 2 additions & 2 deletions tests/test-dirs/type-enclosing/types.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"line": 5,
"col": 11
},
"type": "type x = Foo",
"type": "type x : immediate = Foo",
"tail": "no"
}
]
Expand Down Expand Up @@ -115,7 +115,7 @@ Same result regardless of verbosity:
"line": 11,
"col": 19
},
"type": "type 'a l = 'a l",
"type": "type 'a l : value = 'a l",
"tail": "no"
}
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test-dirs/type-enclosing/variants.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ FIXME: Not satisfying, expected core not more
"line": 9,
"col": 13
},
"type": "type unit = ()",
"type": "type unit : immediate = ()",
"tail": "no"
}
]

0 comments on commit e4bb8cf

Please sign in to comment.