[ { } quot with-datastack drop did-not-fail-literal t ] [ drop f f ] recover ;
: experiment-title ( word -- string )
- "(" ?head drop ")" ?tail drop search ;
+ "(" ?head drop ")" ?tail drop
+ H{ { CHAR: - CHAR: \s } } substitute >title ;
MACRO: <experiment> ( word -- )
[ stack-effect in>> length dup ]
'[ _ ndup _ narray _ prefix ] ;
: experiment. ( seq -- )
- [
- [
- rest verbose-tests? get
- [ [ pprint* "" text ] each ]
- [ [ [ pprint* "" text ] with-short-limits ] each ] if
- ]
- [ "" text first pprint-word flush ] bi
- ] with-pprint nl ;
+ [ first write ": " write ]
+ [ rest verbose-tests? get [ . ] [ short. ] if flush ] bi ;
:: experiment ( word: ( -- error ? ) line# -- )
word <experiment> :> e