Skip to content

Commit 613a092

Browse files
authored
Update runtests.jl
1 parent 0549025 commit 613a092

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

test/runtests.jl

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +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-
# Require the source markdown to be present
13-
print(" index.jmd exists…… ")
14-
@assert isfile(prefix * ".jmd")
15-
println("")
16-
17-
# Optional: ensure each tutorial folder has a Project.toml for deps
18-
print(" Project.toml exists…… ")
19-
@assert isfile(joinpath(rootdir, dir, subdir, "Project.toml"))
20-
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
2118
end
2219
end
2320
end

0 commit comments

Comments
 (0)