Testing
test is a language keyword. You do not import it.
Testing helpers are regular std functions and must be imported explicitly.
(use std/string)
(use std/result [Result])
(use std/testing [assert_eq])
(test "string/length"
(let? [_ (assert_eq (string/length "hello") 5)]
(assert_eq (string/length "") 0)))
Notes:
testdeclarations are only allowed in files undertests/let?short-circuits onResult, nobindimport required(use std)does not importassert_eqinto unqualified scope