Skip to content

Commit

Permalink
mason.test: change mason to load roots in order.
Browse files Browse the repository at this point in the history
This will allow us to know when core depends on basis, or basis on
extra, because they should get load errors.
  • Loading branch information
mrjbq7 committed Apr 3, 2020
1 parent 2c378da commit 2c01419
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions extra/mason/test/test.factor
Expand Up @@ -3,7 +3,7 @@
USING: accessors assocs benchmark bootstrap.stage2 calendar
command-line compiler.errors continuations debugger fry generic
help.html help.lint io io.directories io.encodings.utf8 io.files
io.styles kernel locals mason.common memory namespaces
io.styles kernel locals mason.common math memory namespaces
parser.notes sequences sets sorting source-files.errors system
threads tools.errors tools.test tools.time vocabs
vocabs.hierarchy.private vocabs.loader vocabs.refresh words ;
Expand Down Expand Up @@ -34,8 +34,11 @@ IN: mason.test
vocabs-to-load require-all-no-restarts ;

: load-no-restarts ( prefix -- failures )
[ vocab-roots get ] dip
'[ _ load-from-root-no-restarts ] map concat ;
[ vocab-roots get dup ] dip '[
_ swap 1 + head vocab-roots [
_ load-from-root-no-restarts
] with-variable
] map-index concat ;

: do-load ( -- )
"" load-no-restarts
Expand Down

0 comments on commit 2c01419

Please sign in to comment.