" trials" %
] "" make ;
-: (fuzz-test) ( generator predicate -- error ? )
+: (fuzz-test) ( generator predicate -- error/f failed? tested? )
[ fuzz-test-failures [ f f ] ]
[ '[ _ fuzz-test-trials get <fuzz-test-failure> t ] ] bi
- if-empty ; inline
+ if-empty t ; inline
PRIVATE>
swap >>error
error-continuation get >>continuation ;
+SYMBOL: long-unit-tests-enabled?
+long-unit-tests-enabled? [ t ] initialize
+
<PRIVATE
: notify-test-failed ( error experiment path line# -- )
:: (unit-test) ( output input -- error/f failed? tested? )
[ { } input with-datastack output assert-sequence= f f ] [ t ] recover t ;
-SYMBOL: long-unit-tests-enabled?
-long-unit-tests-enabled? [ t ] initialize
-
: (long-unit-test) ( output input -- error/f failed? tested? )
long-unit-tests-enabled? get [ (unit-test) ] [ 2drop f f f ] if ;