Skip to content

Commit 517431c

Browse files
committed
more tests
1 parent da0b51a commit 517431c

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

jscomp/test/alias_test.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ var v = 1;
77

88
var a21 = "hello worldnothello worldnot";
99

10+
function ff() {
11+
return "cool test hello worldnothello worldnothello";
12+
}
13+
14+
var a23 = ff(/* () */0);
15+
1016
var a15 = a10;
1117

1218
var b15 = 111;
@@ -15,4 +21,6 @@ exports.a15 = a15;
1521
exports.b15 = b15;
1622
exports.a21 = a21;
1723
exports.v = v;
18-
/* No side effect */
24+
exports.a23 = a23;
25+
exports.ff = ff;
26+
/* a23 Not a pure module */

jscomp/test/alias_test.ml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ let a20 = a19 ^ "not"
4545
let v = if a20.[0] = 'h' then 1 else 2
4646
let a21 = a20 ^ a20
4747

48+
let a22 = "test " ^ a21 ^ "hello"
49+
50+
let ff () =
51+
"cool " ^ a22
52+
53+
let a23 = ff ()
54+
4855
let b0 = 111
4956

5057
let b1 = b0

jscomp/test/alias_test.mli

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ val b15 : int
66

77
val a21 : string
88

9-
val v : int
9+
val v : int
10+
11+
val a23: string
12+
13+
14+
15+
val ff : unit -> string

0 commit comments

Comments
 (0)