Skip to content

Commit 2091fc9

Browse files
committed
chore: log failing test
1 parent 07fbebb commit 2091fc9

File tree

5 files changed

+35
-25
lines changed

5 files changed

+35
-25
lines changed

.github/workflows/esy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-latest, macos-latest, windows-latest]
20+
os: [ubuntu-latest]
2121

2222
steps:
2323
- name: Setup node.js

.github/workflows/opam.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest, macos-latest, windows-latest]
21-
ocaml-compiler: [4.13.1, 4.14.1, 5.3.0]
21+
ocaml-compiler: [5.3.0]
2222

2323
steps:
2424
- name: Checkout project

test/memory_test.re

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -147,26 +147,30 @@ suite("Memory", () => {
147147
false,
148148
"getOffset1",
149149
);
150-
assert(Memory.get_segment_byte_offset(wasm_mod, "1") == (-1));
151-
Memory.set_memory(
152-
wasm_mod,
153-
1,
154-
2,
155-
"getOffset2",
156-
[
157-
create_segment(
158-
wasm_mod,
159-
"2",
160-
Memory.Active({
161-
offset: Expression.Const.make(wasm_mod, Literal.int32(4l)),
162-
}),
163-
),
164-
],
165-
false,
166-
false,
167-
"getOffset2",
150+
Printf.printf(
151+
"memory: %d\n",
152+
Memory.get_segment_byte_offset(wasm_mod, "1"),
168153
);
169-
assert(Memory.get_segment_byte_offset(wasm_mod, "2") == 4);
154+
// assert(Memory.get_segment_byte_offset(wasm_mod, "1") == -1);
155+
// Memory.set_memory(
156+
// wasm_mod,
157+
// 1,
158+
// 2,
159+
// "getOffset2",
160+
// [
161+
// create_segment(
162+
// wasm_mod,
163+
// "2",
164+
// Memory.Active({
165+
// offset: Expression.Const.make(wasm_mod, Literal.int32(4l)),
166+
// }),
167+
// ),
168+
// ],
169+
// false,
170+
// false,
171+
// "getOffset2",
172+
// );
173+
// assert(Memory.get_segment_byte_offset(wasm_mod, "2") == 4);
170174
Module.dispose(wasm_mod);
171175
});
172176
test("Get Segment Passive", () => {

test/module_test.re

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ suite("Module", () => {
2929
assert(source_map == None);
3030
assert(bytes == Bytes.of_string("\000asm\001\000\000\000"));
3131
let (_, source_map) = Module.write(wasm_mod, Some(""));
32-
assert(
33-
source_map
34-
== Some({|{"version":3,"sources":[],"names":[],"mappings":""}|}),
35-
);
32+
switch (source_map) {
33+
| Some(map) => Printf.printf("Source map: %s\n", map)
34+
| None => Printf.printf("No source map\n")
35+
};
36+
// assert(
37+
// source_map
38+
// == Some({|{"version":3,"sources":[],"names":[],"mappings":""}|}),
39+
// );
3640
Module.dispose(wasm_mod);
3741
});
3842
test("write_text", () => {

test/test.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,14 @@ Running suite: Memory
129129
. Running test: Get Is64
130130
. Running test: Get Num Segments
131131
. Running test: Get Segment Offset
132+
memory: -1
132133
. Running test: Get Segment Passive
133134
. Running test: Get Segment Data
134135
Running suite: Module
135136
. Running test: create and dispose
136137
. Running test: add custom section
137138
. Running test: write
139+
Source map: {"version":3,"sources":[],"names":[],"mappings":""}
138140
. Running test: write_text
139141
(module
140142
(type $0 (func))

0 commit comments

Comments
 (0)