Add sanity check
parent
c1509d5fe5
commit
f9ed7ac1ae
|
@ -0,0 +1,5 @@
|
|||
IN: source-files.tests
|
||||
USING: source-files tools.test assocs sequences strings
|
||||
namespaces kernel ;
|
||||
|
||||
[ { } ] [ source-files get keys [ string? not ] filter ] unit-test
|
|
@ -44,6 +44,7 @@ uses definitions ;
|
|||
\ source-file construct ;
|
||||
|
||||
: source-file ( path -- source-file )
|
||||
dup string? [ "Invalid source file path" throw ] unless
|
||||
source-files get [ <source-file> ] cache ;
|
||||
|
||||
: reset-checksums ( -- )
|
||||
|
|
Loading…
Reference in New Issue