Skip to content

Commit

Permalink
Delete generated test files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jun 9, 2017
1 parent 3822518 commit 8c3e9e0
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ df = load(joinpath(@__DIR__, "data.csv")) |> DataFrame

output_filename = tempname() * ".csv"

df |> save(output_filename)
try
df |> save(output_filename)

df2 = load(output_filename) |> DataFrame
df2 = load(output_filename) |> DataFrame

@test df == df2
finally
gc()
rm(output_filename)
end

@test df == df2

csvf = load(joinpath(@__DIR__, "data.csv"))

Expand All @@ -27,6 +33,10 @@ df3 = DataFrame(a=@data([3, NA]), b=["df\"e", "something"])

output_filename2 = tempname() * ".csv"

df3 |> save(output_filename2)
try
df3 |> save(output_filename2)
finally
rm(output_filename2)
end

end

0 comments on commit 8c3e9e0

Please sign in to comment.