aboutsummaryrefslogtreecommitdiff
path: root/tests/h.lua
diff options
context:
space:
mode:
authorame <[email protected]>2024-08-03 02:30:02 -0500
committerame <[email protected]>2024-08-03 02:30:02 -0500
commit37dc46c19843f3328e06c7199548238f056c1a6b (patch)
treecbfee9fffc70d07bfd6b632e1f73b17da19d578c /tests/h.lua
parent3aaf4185c489830ff6c56c9a359584d5003f92ec (diff)
fix tests, module based require, thread improvments
Diffstat (limited to 'tests/h.lua')
-rw-r--r--tests/h.lua34
1 files changed, 7 insertions, 27 deletions
diff --git a/tests/h.lua b/tests/h.lua
index 310d6a8..9717650 100644
--- a/tests/h.lua
+++ b/tests/h.lua
@@ -1,31 +1,11 @@
-llib = require "llib"
+llib = require "lullaby"
+llib.config.set({print_meta = 1})
-llib.config.set({print_meta=1,max_depth=22})
---llib.thread.lock(1)
---llib.thread.lock(2)
---llib.thread.unlock(2)
-a = llib.thread.buffer(llib.crypto.md5())
+local a = llib.crypto.sha1()
+local b = llib.thread.buffer(a)
-print(a:get():final())
-for i=1,2009 do
- llib.thread.async(function (res)
- --llib.io.pprint(a);
- --l = a + a
- --a:mod(function(e) return e:update("meow") end)
- end)
-end
+llib.io.pprint(a)
+llib.io.pprint(b)
+llib.io.pprint((b + "meow"):final())
---os.execute("sleep 1")
-print(a:get():final())
---print("unlock")
---llib.thread.unlock(1)
-
-
---awa = thread_a:await()
-
---print(awa:await())
---print((awa + "hi"):final())
---thread_a:clean()
-
-print("clean exit")