Skip to content

Commit 3fbba7a

Browse files
committed
WIP
1 parent 600a381 commit 3fbba7a

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

compiler/tests-compiler/call_gen.ml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ module M1 = struct
4242
let%expect_test "executed code" =
4343
compile_and_run code;
4444
[%expect {|
45-
10
46-
10
47-
14
48-
25
49-
|}]
45+
10
46+
10
47+
14
48+
25 |}]
5049

5150
let%expect_test "generated code" =
5251
let generated = compile_and_parse code in
@@ -149,6 +148,5 @@ module M2 = struct
149148
15
150149
20
151150
15
152-
20
153-
|}]
151+
20 |}]
154152
end

compiler/tests-compiler/gh1559.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ let () = my_ref := 2
6060
|}
6161
in
6262
Util.compile_and_run prog;
63-
[%expect
64-
{| 1 |}];
63+
[%expect {|
64+
1 |}];
6565
let program = Util.compile_and_parse prog in
6666
Util.print_program program;
6767
[%expect
@@ -165,8 +165,8 @@ let () = my_ref := 2
165165
|}
166166
in
167167
Util.compile_and_run prog;
168-
[%expect
169-
{| 2 |}];
168+
[%expect {|
169+
2 |}];
170170
let program = Util.compile_and_parse prog in
171171
Util.print_program program;
172172
[%expect

compiler/tests-compiler/gh1768.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let () =
5555
global_data = runtime.caml_get_global_data(),
5656
Assert_failure = global_data.Assert_failure,
5757
_a_ = [0, caml_string_of_jsbytes("test.ml"), 4, 27];
58-
function h(x){x[1] = function(x, y){return x + y | 0;};}
58+
function h(x){x[1] = runtime.caml_add;}
5959
function f(param){
6060
return [0,
6161
function(param){

compiler/tests-compiler/unix_fs.ml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ in
136136
f (); Sys.chdir "/static"; f () |};
137137
[%expect {|
138138
File size: 3
139-
Failure("caml_unix_stat: not implemented")
140-
|}]
139+
Failure("caml_unix_stat: not implemented")|}]
141140

142141
let%expect_test "Unix.stat_dir" =
143142
compile_and_run
@@ -181,8 +180,7 @@ f (); Sys.chdir "/static"; f () |};
181180
{|
182181
File size: 3
183182
Failure("caml_unix_symlink: not implemented")
184-
Failure("caml_unix_stat: not implemented")
185-
|}]
183+
Failure("caml_unix_stat: not implemented")|}]
186184

187185
let%expect_test "Unix.symlink_Unix.readlink" =
188186
compile_and_run
@@ -249,8 +247,7 @@ in
249247
f (); Sys.chdir "/static"; f () |};
250248
[%expect {|
251249
File size: 3
252-
Failure("caml_unix_lstat: not implemented")
253-
|}]
250+
Failure("caml_unix_lstat: not implemented")|}]
254251

255252
let%expect_test "Unix.lstat_symlink" =
256253
compile_and_run

0 commit comments

Comments
 (0)