Skip to content

Commit 169bf33

Browse files
test(jco): fix & re-enable tests for primitives and string
1 parent aaf8143 commit 169bf33

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/jco/test/p3/stream-lowers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ suite("stream<T> lowers", () => {
136136
assert.deepEqual(returnedVals, vals);
137137
});
138138

139-
test.only("u16/s16", async () => {
139+
test.concurrent("u16/s16", async () => {
140140
assert.instanceOf(instance["jco:test-components/use-stream-async"].readStreamValuesU16, AsyncFunction);
141141
assert.instanceOf(instance["jco:test-components/use-stream-async"].readStreamValuesS16, AsyncFunction);
142142

@@ -195,13 +195,13 @@ suite("stream<T> lowers", () => {
195195
let returnedVals = await instance["jco:test-components/use-stream-async"].readStreamValuesF32(
196196
createReadableStreamFromValues(vals),
197197
);
198-
vals.entries().forEach(([idx, v]) => assert.closeTo(v, returnedVals[idx], 0.00001));
198+
vals.entries().forEach(([idx, v]) => assert.closeTo(v, returnedVals[idx], 0.01));
199199

200200
vals = [-60000.01235, -1.5, -0.0, 0.0, 1.5, -60000.01235];
201201
returnedVals = await instance["jco:test-components/use-stream-async"].readStreamValuesF32(
202202
createReadableStreamFromValues(vals),
203203
);
204-
vals.entries().forEach(([idx, v]) => assert.closeTo(v, returnedVals[idx], 0.00001));
204+
vals.entries().forEach(([idx, v]) => assert.closeTo(v, returnedVals[idx], 0.01));
205205
});
206206

207207
test.concurrent("string", async () => {

0 commit comments

Comments
 (0)