tools.test: run-test-file is public now, fix no-method error if unit test forgets a vocab
parent
98a71d3521
commit
823e2fd3e9
|
@ -110,15 +110,21 @@ SYNTAX: TEST:
|
|||
|
||||
>>
|
||||
|
||||
PRIVATE>
|
||||
|
||||
: run-test-file ( path -- )
|
||||
dup file [
|
||||
test-failures get file get +test-failure+ delete-file-errors
|
||||
'[ _ run-file ] [ file-failure ] recover
|
||||
] with-variable ;
|
||||
|
||||
<PRIVATE
|
||||
|
||||
: run-vocab-tests ( vocab -- )
|
||||
dup vocab source-loaded?>> [
|
||||
vocab-tests [ run-test-file ] each
|
||||
vocab dup [
|
||||
dup source-loaded?>> [
|
||||
vocab-tests [ run-test-file ] each
|
||||
] [ drop ] if
|
||||
] [ drop ] if ;
|
||||
|
||||
PRIVATE>
|
||||
|
|
Loading…
Reference in New Issue