Remove .txt suffix from reference test files

This commit is contained in:
Chris de Graaf 2019-09-19 17:18:12 +07:00
parent 3b9714c8a8
commit 12fcc121fa
No known key found for this signature in database
GPG Key ID: 150FFDD9B0073C7B
24 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ function test_all(pkg::AbstractString; kwargs...)
with_pkg(t, pkg) do pkg with_pkg(t, pkg) do pkg
pkg_dir = joinpath(t.dir, pkg) pkg_dir = joinpath(t.dir, pkg)
foreach(readlines(`git -C $pkg_dir ls-files`)) do f foreach(readlines(`git -C $pkg_dir ls-files`)) do f
# All fixture files are .txt so that ReferenceTests can handle them. reference = joinpath(@__DIR__, "fixtures", pkg, f)
reference = joinpath(@__DIR__, "fixtures", pkg, f * ".txt")
observed = read(joinpath(pkg_dir, f), String) observed = read(joinpath(pkg_dir, f), String)
@test_reference reference observed @test_reference reference observed
end end