move to test folder and fix import bug in shell

This commit is contained in:
2023-03-20 00:17:43 +00:00
parent b56c1fc485
commit 4a320008b2
9 changed files with 37 additions and 8 deletions

14
tests/thread.ar Normal file
View File

@@ -0,0 +1,14 @@
f() = do
term.log("Hello, world!")
term.time("threaded function")
for (i from 0 to 1000000) do
if (i % 100000 == 0) do
term.log("i = " + i)
term.timeEnd("threaded function")
term.log("Goodbye, world!")
t = thread(f)
t.start()
term.time("main thread")
t.join()
term.timeEnd("main thread")