Skip to content

Commit 9f40421

Browse files
committed
- remove tests: unqualify modules from external libs
- fix naming of tests
1 parent d1a9313 commit 9f40421

File tree

1 file changed

+3
-40
lines changed

1 file changed

+3
-40
lines changed

tests/test-dirs/refactor-open/unqualify.t

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Works for in-file modules
1+
Can unqualify module located in the same file
22
$ $MERLIN single refactor-open -action unqualify -position 4:6 <<EOF
33
> module M = struct
44
> let u = ()
@@ -24,7 +24,7 @@ Works for in-file modules
2424
"notifications": []
2525
}
2626

27-
Works for in-file nested modules
27+
Can unqualify nested modules located in the same file
2828

2929
$ $MERLIN single refactor-open -action unqualify -position 6:6 <<EOF
3030
> module M = struct
@@ -53,44 +53,7 @@ Works for in-file nested modules
5353
"notifications": []
5454
}
5555

56-
Works for stdlib modules (stdlib modules differ from other in-file modules because their
57-
full path is different)
58-
59-
$ $MERLIN single refactor-open -action unqualify -position 1:6 <<EOF
60-
> open Unix
61-
> let times = Unix.times ()
62-
> EOF
63-
{
64-
"class": "return",
65-
"value": [
66-
{
67-
"start": {
68-
"line": 2,
69-
"col": 12
70-
},
71-
"end": {
72-
"line": 2,
73-
"col": 22
74-
},
75-
"content": "times"
76-
}
77-
],
78-
"notifications": []
79-
}
80-
81-
Shouldn't return anything, as nothing to unqualify
82-
83-
$ $MERLIN single refactor-open -action unqualify -position 1:6 <<EOF
84-
> open Unix
85-
> let times = times ()
86-
> EOF
87-
{
88-
"class": "return",
89-
"value": [],
90-
"notifications": []
91-
}
92-
93-
Shouldn't return anything, as nothing to unqualify for multiline paths
56+
Shouldn't return anything, as nothing to unqualify (for multiline identifiers)
9457

9558
$ $MERLIN single refactor-open -action unqualify -position 1:6 <<EOF
9659
> open Unix

0 commit comments

Comments
 (0)