Skip to content

Commit f431359

Browse files
committed
Add more tests
1 parent 6a1e4a1 commit f431359

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/test-dirs/type-enclosing/jkind-hover.t

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Test that hovering over jkind annotations shows their full expansion.
3737
> type t2 : value mod portable
3838
> type ('a : immediate) t3 : value
3939
> type 'a t4 : immutable_data mod global with 'a
40+
> type t5 : value mod everything
41+
> type t6 : bits32
42+
> type t7 : bits32 mod portable contended
43+
> type t8 : void
4044
> EOF
4145
4246
$ hover 1 14 1
@@ -68,3 +72,25 @@ Test that hovering over jkind annotations shows their full expansion.
6872
"immutable_data " : "value mod forkable unyielding many stateless immutable non_float"
6973
"immutable_data mod global " : "value mod global many stateless immutable non_float"
7074
"type 'a t4 : immutable_data mod global with 'a" : "type 'a t4 : immutable_data mod global unforkable yielding with 'a"
75+
76+
$ hover 5 11 2
77+
type t5 : value mod everything
78+
^
79+
"value " : "value"
80+
"value mod everything" : "value mod global many stateless immutable external_"
81+
82+
$ hover 6 11 1
83+
type t6 : bits32
84+
^
85+
"bits32" : "bits32 mod non_float"
86+
87+
$ hover 7 11 2
88+
type t7 : bits32 mod portable contended
89+
^
90+
"bits32 " : "bits32 mod non_float"
91+
"bits32 mod portable contended" : "bits32 mod portable contended non_float"
92+
93+
$ hover 8 11 1
94+
type t8 : void
95+
^
96+
"void" : "void mod non_float"

0 commit comments

Comments
 (0)