Skip to content

Commit 7ea662f

Browse files
committed
add log
1 parent 42015be commit 7ea662f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/docstrings_examples/DocTest.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ let main = async () => {
374374
// Await the next iterator value
375375
let {value, done} = await asyncIterator->AsyncIterator.next
376376

377+
Console.log2(value, Array.length(chuncks))
378+
377379
// Exit the while loop if the iterator says it's done
378380
break := done
379381

tests/docstrings_examples/DocTest.res.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ async function main() {
381381
while (!$$break) {
382382
let match = await asyncIterator.next();
383383
let value = match.value;
384+
console.log(value, chuncks.length);
384385
$$break = match.done;
385386
if (value !== undefined) {
386387
let c = chuncks[value];

0 commit comments

Comments
 (0)