Skip to content

Commit e3bc894

Browse files
authored
Update runtests.jl
1 parent 2ca9937 commit e3bc894

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

test/runtests.jl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ function tests()
55
readdir(rootdir),
66
)
77
for dir in dirs
8-
subdirs = filter(y -> isdir(joinpath(rootdir, dir, y)), readdir(joinpath(rootdir, dir)))
8+
subdirs = readdir(joinpath(rootdir, dir))
99
for subdir in subdirs
10-
prefix = joinpath(rootdir, dir, subdir, "index")
10+
prefix = joinpath(rootdir, dir, subdir, subdir)
1111
println("Verifying files in $dir/$subdir")
12-
# Only require the source markdown and Project.toml to be present
13-
print(" index.jmd exists…… ")
14-
@assert isfile(prefix * ".jmd")
15-
println("")
16-
17-
print(" Project.toml exists…… ")
18-
@assert isfile(joinpath(rootdir, dir, subdir, "Project.toml"))
19-
println("")
12+
for suffix in [".jmd", ".html", ".ipynb", ".jl"]
13+
spc = " "^(6 - length(suffix))
14+
print(" $subdir$suffix$spc exists…… ")
15+
@assert isfile(prefix * suffix)
16+
println("")
17+
end
2018
end
2119
end
2220
end

0 commit comments

Comments
 (0)