1 ! Copyright (C) 2010 Joe Groff.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: arrays globs sorting tools.test vocabs.metadata.resources ;
4 IN: vocabs.metadata.resources.tests
8 "*.txt" { "hello.txt" } match-pattern
12 "*.txt" { "foo.bar" "foo.factor" } match-pattern
13 ] [ resource-missing? ] must-fail-with
19 { "*.txt" "*.pdf" } { "a.txt" "b.pdf" "a" } match-patterns
22 ! vocab-resource-files
23 { { "bar" "bas" "foo" } }
24 [ "vocabs.metadata.resources.test.1" vocab-resource-files natural-sort ] unit-test
26 { { "bar.wtf" "foo.wtf" } }
27 [ "vocabs.metadata.resources.test.2" vocab-resource-files natural-sort ] unit-test
34 "resource-dir/bas/zang"
35 "resource-dir/bas/zim"
39 "vocabs.metadata.resources.test.3" vocab-resource-files natural-sort