Skip to content

Commit 1142c37

Browse files
committed
add a test case
1 parent 5a54d11 commit 1142c37

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jscomp/test/gpr_1946_test.ml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
let suites : Mt.pair_suites ref = ref []
3+
let test_id = ref 0
4+
let eq loc x y = Mt.eq_suites ~test_id ~suites loc x y
25

36

47

@@ -10,6 +13,8 @@ let x = [%obj{x = 3 ; y = 4}]##x
1013
let zz = [%obj{_5 = 3 }]##_5
1114

1215

13-
;; [%obj{_5 = 3 }]##_5
1416

15-
;; Js.log @@ Obj.tag (Obj.repr [%obj{_5 = 3 }])
17+
;; eq __LOC__ [%obj{_5 = 3 }]##_5 3
18+
;; Js.log @@ Obj.tag (Obj.repr [%obj{_5 = 3 }])
19+
20+
;; Mt.from_pair_suites __LOC__ !suites

0 commit comments

Comments
 (0)