aboutsummaryrefslogtreecommitdiffstats
path: root/alv-lib
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-10-20 13:24:00 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commitdbae9319b5e307f55396e54e1ae6298144411d70 (patch)
tree73d00a676687b76723df0e142245f3dd4fb413bd /alv-lib
parentlib: add <,<=,>,>= to logic, add tests (diff)
downloadalive-dbae9319b5e307f55396e54e1ae6298144411d70.tar.gz
alive-dbae9319b5e307f55396e54e1ae6298144411d70.zip
use testing module for lib/logic tests
Diffstat (limited to 'alv-lib')
-rw-r--r--alv-lib/testing.moon3
1 files changed, 1 insertions, 2 deletions
diff --git a/alv-lib/testing.moon b/alv-lib/testing.moon
index 7abe9f6..d967232 100644
--- a/alv-lib/testing.moon
+++ b/alv-lib/testing.moon
@@ -24,8 +24,7 @@ By default, the message contains the failing check expression."
tick: =>
{ :check, :msg } = @unwrap_all!
- if not check
- error Error 'assertion', msg or "assertion failed"
+ assert check, Error 'assertion', msg or "assertion failed"
eval: (scope, tail) =>
L\trace "evaling #{@}"