diff options
| author | ame <[email protected]> | 2024-06-13 00:01:51 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-06-13 00:01:51 -0500 |
| commit | 90a2acc2f0c9d3904e1dea737e45ef6b10f96a22 (patch) | |
| tree | 401f11f59cbf2cee3c7ec1c58906b7c4d8105e4b /tests | |
| parent | 237fcfbd61a9895326538a274f025d9ed57a3903 (diff) | |
working on deepcopy ub
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/h.lua | 12 | ||||
| -rw-r--r-- | tests/s.lua | 13 |
2 files changed, 20 insertions, 5 deletions
diff --git a/tests/h.lua b/tests/h.lua index 412d09c..0913892 100644 --- a/tests/h.lua +++ b/tests/h.lua @@ -6,15 +6,17 @@ llib.config.set({print_meta=1,max_depth=22}) --llib.thread.unlock(2)
a = llib.thread.buffer(llib.crypto.md5())
-a:mod(function(e) return e end)
-print("hi")
-for i=1,20 do
+
+print(a:get():final())
+for i=1,2009 do
llib.thread.async(function (res)
- a:mod(function(e) return e:update("meow") end)
+ --llib.io.pprint(a);
+ --l = a + a
+ --a:mod(function(e) return e:update("meow") end)
end)
end
-os.execute("sleep 1")
+--os.execute("sleep 1")
print(a:get():final())
--print("unlock")
--llib.thread.unlock(1)
diff --git a/tests/s.lua b/tests/s.lua index bac5072..929c127 100644 --- a/tests/s.lua +++ b/tests/s.lua @@ -1,2 +1,15 @@ +local t = function (a) end
+
require "llib"
+a = llib.crypto.md5()
+
+for i = 1,200 do
+ --llib.io.pprint(function (a) end)
+ llib.thread.async(function(a) end)--:await()
+end
+
+if a:final() ~= "d41d8cd98f00b204e9800998ecf8427e" then
+ print(a:final())
+end
+
|
