JuliaData / DataTables.jl

(DEPRECATED) A rewrite of DataFrames.jl based on Nullable
Other
29 stars 11 forks source link

replace `printtable` test #29

Closed cjprybol closed 7 years ago

cjprybol commented 7 years ago

The old, now removed tests depended on dataset files we removed and was actually part of the benchmark tests. This test does the same in that it has to successfully run to pass tests, but it still doesn't check the output (same as the old tests). Is it possible to test the printed values?

ararslan commented 7 years ago

Is it possible to test the printed values?

If it's printed using a show method, you can capture the string as sprint(show, ...). Otherwise, you can print to a temp file then readchomp the contents.

cjprybol commented 7 years ago

Thanks for that suggestion @ararslan, worked great!

nalimilan commented 7 years ago

For future reference, the printtable tests were mistakenly removed by #26.