tools.test: Make the flag public. Finish porting tester changes to fuzzer.
parent
1708c8011f
commit
9e76899dbd
|
@ -31,10 +31,10 @@ M: fuzz-test-failure summary
|
|||
" 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>
|
||||
|
||||
|
|
|
@ -43,6 +43,9 @@ t restartable-tests? set-global
|
|||
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# -- )
|
||||
|
@ -58,9 +61,6 @@ SYMBOL: current-test-file
|
|||
:: (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 ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue