debug! add console.log stmts

This commit is contained in:
Ben Noordhuis 2024-04-07 11:52:17 +02:00
parent c33b8c9b13
commit c18611db27

View file

@ -281,10 +281,10 @@ function test_timeout_order()
os.setTimeout(a, 1); os.setTimeout(a, 1);
os.setTimeout(b, 2); os.setTimeout(b, 2);
os.setTimeout(d, 5); os.setTimeout(d, 5);
function a() { s += "a"; os.setTimeout(c, 0); } function a() { console.log("a:", s); s += "a"; os.setTimeout(c, 0); }
function b() { s += "b"; } function b() { console.log("b:", s); s += "b"; }
function c() { s += "c"; } function c() { console.log("c:", s); s += "c"; }
function d() { assert(s === "abc"); } // not "acb" function d() { console.log("d:", s); assert(s === "abc"); } // not "acb"
} }
test_printf(); test_printf();