aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-07 16:07:55 -0600
committerame <[email protected]>2023-12-07 16:07:55 -0600
commit0de95dae34c2d588dc8f05fd0d2c50fd83230467 (patch)
tree139e93b89811473c3d858e993adcee92a4ed4e6c
parent79e6627bf92bb2bfd5a103cc4006994309b48246 (diff)
readme & prettier tests
-rw-r--r--readme.md6
-rw-r--r--tests/hash.lua4
2 files changed, 6 insertions, 4 deletions
diff --git a/readme.md b/readme.md
index 17c0d4d..37bad42 100644
--- a/readme.md
+++ b/readme.md
@@ -1,8 +1,10 @@
-build with `clang -shared src/*.c src/hash/*.c src/encode/*.c -o llib.so`
+build with `clang -shared src/*.c src/*/*.c -o llib.so`
useage and docs coming soon:3
todo:
- - redo string fetching (like in encode)
+ - (working on seperatley) gui for graphs
+
+ - fix -O3 breaking some hashes (not sure if i care)
diff --git a/tests/hash.lua b/tests/hash.lua
index 5f9d523..e6099d5 100644
--- a/tests/hash.lua
+++ b/tests/hash.lua
@@ -3,9 +3,9 @@ require "llib"
function test(name,b,exp)
local hash = llib.crypto[name](b)
if not (hash == exp) then
- print(name.." not working, got "..hash.." wanted "..exp)
+ llib.io.error(name.." not working, got "..hash.." wanted "..exp)
else
- print(name.." was correct, "..hash)
+ llib.io.log(name.." was correct, "..hash)
end
end