Skip to content

Commit

Permalink
added example table
Browse files Browse the repository at this point in the history
  • Loading branch information
piever committed Mar 21, 2018
1 parent d557283 commit 46325e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/GroupedErrors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ include("plot_macro.jl")
include("pipeline.jl")
include("analysisfunctions.jl")

exampletable() = joinpath(dirname(@__DIR__), "test", "tables")
exampletable(s) = joinpath(exampletable(), s)


end
2 changes: 1 addition & 1 deletion test/build_test_tables.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
school = loadtable(joinpath(@__DIR__, "tables", "school.csv"))
school = GroupedErrors.exampletable("school.csv") |> loadtable
tables = []

#Test scatter plot
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for i in 1:length(tables)
println(i)
test_table = tables[i]
println(test_table)
stored_table = loadtable(joinpath(@__DIR__, "tables", "t$i.csv"))
stored_table = loadtable(GroupedErrors.exampletable("t$i.csv"))
println(stored_table)
atol = i == 8 ? 1e-1 : 1e-4
check_equality(stored_table, test_table, atol)
Expand Down

0 comments on commit 46325e8

Please sign in to comment.