diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-10-20 13:24:00 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | dbae9319b5e307f55396e54e1ae6298144411d70 (patch) | |
| tree | 73d00a676687b76723df0e142245f3dd4fb413bd /alv-lib | |
| parent | lib: add <,<=,>,>= to logic, add tests (diff) | |
| download | alive-dbae9319b5e307f55396e54e1ae6298144411d70.tar.gz alive-dbae9319b5e307f55396e54e1ae6298144411d70.zip | |
use testing module for lib/logic tests
Diffstat (limited to 'alv-lib')
| -rw-r--r-- | alv-lib/testing.moon | 3 |
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 #{@}" |
