Update test lib with not-null? word (#226)

[no important files changed]
This commit is contained in:
Erik Schierboom
2025-02-10 21:25:32 +01:00
committed by GitHub
parent 97cdbfebf6
commit e2457bde3d
69 changed files with 552 additions and 0 deletions

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --

View File

@@ -152,6 +152,14 @@ true var, run-test
G:null? nip if test-passed else test-failed then
;
: not-null? \ s w --
run-test? !if drop test-skipped ;; then
w:exec
2 check-depth
null swap dup \ so test-failed can show actual and expected
G:null? not nip if test-passed else test-failed then
;
: SKIP-REST-OF-TESTS false run-test ! ;
: tests \ n --