remove some words from random-tester, remove some debug output

erg 2006-12-14 09:04:56 +00:00
parent 5fdae530bb
commit 4780ef34b5
2 changed files with 21 additions and 18 deletions

View File

@ -46,6 +46,7 @@ SYMBOL: wordbank
continue-with <continuation> continue-with <continuation>
define-compound define make-generic define-compound define make-generic
define-method define-predicate-class
define-tuple define-temp define-tuple-slots define-tuple define-temp define-tuple-slots
define-writer define-predicate define-generic define-writer define-predicate define-generic
?make-generic define-reader define-slot define-slots ?make-generic define-reader define-slot define-slots
@ -61,14 +62,13 @@ SYMBOL: wordbank
close readln read1 read (lines) with-server close readln read1 read (lines) with-server
stream-read stream-read
stream-readln stream-read1 lines contents stream-copy stream-readln stream-read1 lines contents stream-copy
stream-write log-stream stream-format set-line-reader-cr
stream-flush (readln) stream-flush (readln)
word-xt. word-xt.
stdio stdio
group
.s .s
double>bits float>bits >bignum double>bits float>bits >bignum
@ -93,11 +93,17 @@ SYMBOL: wordbank
changed-words changed-words
callstack namespace namestack global vocabularies callstack namespace namestack global vocabularies
file. (file.) path+ parent-dir file. (file.) path+ parent-dir directory.
<continuation> continue-with <continuation> continue-with
set-delegate set-delegate
closure
tabular-output simple-slots
join
} }
{ "arrays" "errors" "generic" "graphs" "hashtables" "io" { "arrays" "errors" "generic" "graphs" "hashtables" "io"

View File

@ -29,18 +29,20 @@ TUPLE: inert-object ;
: inputs ( -- seq ) : inputs ( -- seq )
{ {
0 0 -1 -1000000000000000000000000
! -268435457 ! -268435457
inert inert
! T{ inert-object f } ! T{ inert-object f }
-29/2 -29/2 1000000000000000000000000000000/1111111111111111111111111111111111111111111
-3.14 3/4
-1000000000000000000000000/111111111111111111
-3.14 1/0. 0.0 -1/0. 3.14 0/0.
C{ 1 -1 } C{ 1 -1 }
W{ 55 } W{ 55 }
{ } { }
f f t
H{ } H{ }
V{ } V{ 65536 0 0 0 65536 }
"" ""
SBUF" " SBUF" "
[ ] [ ]
@ -86,22 +88,17 @@ TUPLE: inert-object ;
SYMBOL: err SYMBOL: err
SYMBOL: type-error SYMBOL: type-error
SYMBOL: params SYMBOL: params
SYMBOL: last-time
: throws? ( data... quot -- ? ) : throws? ( data... quot -- ? )
err off type-error off err off type-error off
>r >r
dup clone params set dup clone params set
maybe-explode maybe-explode
r> r>
! "<<<<<testing" . dup [ nth-byte ] = [ .s ] when
.s
! "-----" . flush
! dup [ standard-combination ] = [
! >r 3dup . sheet . . r> dup .
! ] when
[ call ] [ err on ] recover
! .s ! .s
! ">>>>>tested" . dup last-time get = [ dup . dup last-time set ] unless
[ call ] [ err on ] recover
err get [ err get [
dup type-error? dup [ dup type-error? dup [
! .s ! .s
@ -112,7 +109,7 @@ SYMBOL: params
: test-inputs ( word -- seq ) : test-inputs ( word -- seq )
[ word-inputs ] keep [ word-inputs ] keep
unit [ unit [
throws? not throws? not clear
] curry each-permutation ; ] curry each-permutation ;
: test1 : test1