Skip to content

Commit

Permalink
more tests for get_all_files
Browse files Browse the repository at this point in the history
  • Loading branch information
wookay committed Aug 6, 2021
1 parent 5123ab6 commit e39a4ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/jive/runtests/get_all_files.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,16 @@ targets = ["abc"]
(all_files, start_idx) = Jive.get_all_files(dir, skip, targets)
@test isempty(all_files)

targets = ["abc", "test1"]
(all_files, start_idx) = Jive.get_all_files(dir, skip, targets)
@test all_files == ["test1.jl"]

targets = ["abc", "test"]
(all_files, start_idx) = Jive.get_all_files(dir, skip, targets)
@test all_files == ["test1.jl", "test2.jl"]

targets = ["abc", "test1", "test2"]
(all_files, start_idx) = Jive.get_all_files(dir, skip, targets)
@test all_files == ["test1.jl", "test2.jl"]

end # module test_jive_runtests_get_all_files

0 comments on commit e39a4ff

Please sign in to comment.