From c18611db27bc2eb0d83a53fdacbb33dbcdb12349 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 7 Apr 2024 11:52:17 +0200 Subject: [PATCH] debug! add console.log stmts --- tests/test_std.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_std.js b/tests/test_std.js index f722064..87ac6ec 100644 --- a/tests/test_std.js +++ b/tests/test_std.js @@ -281,10 +281,10 @@ function test_timeout_order() os.setTimeout(a, 1); os.setTimeout(b, 2); os.setTimeout(d, 5); - function a() { s += "a"; os.setTimeout(c, 0); } - function b() { s += "b"; } - function c() { s += "c"; } - function d() { assert(s === "abc"); } // not "acb" + function a() { console.log("a:", s); s += "a"; os.setTimeout(c, 0); } + function b() { console.log("b:", s); s += "b"; } + function c() { console.log("c:", s); s += "c"; } + function d() { console.log("d:", s); assert(s === "abc"); } // not "acb" } test_printf();