From ba396e688fa35e5c4183b637426c73380a2b072a Mon Sep 17 00:00:00 2001 From: quinnj Date: Thu, 7 Sep 2017 22:41:34 -0600 Subject: [PATCH] Fix failing 0.6 tests --- test/utils.jl | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/test/utils.jl b/test/utils.jl index 15b5c7df21..058497aa29 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -159,7 +159,50 @@ module TestUtils CategoricalArray{Union{Int, Null}}(4:7)], [:arr, :nullarr, :cat, :nullcat]) describe(io, df) - @test String(take!(io)) == + # Julia 0.7 + nullfirst = + """ + arr + Summary Stats: + Mean: 2.500000 + Minimum: 1.000000 + 1st Quartile: 1.750000 + Median: 2.500000 + 3rd Quartile: 3.250000 + Maximum: 4.000000 + Length: 4 + Type: $Int + + nullarr + Summary Stats: + Mean: 3.500000 + Minimum: 2.000000 + 1st Quartile: 2.750000 + Median: 3.500000 + 3rd Quartile: 4.250000 + Maximum: 5.000000 + Length: 4 + Type: Union{Nulls.Null, $Int} + Number Missing: 0 + % Missing: 0.000000 + + cat + Summary Stats: + Length: 4 + Type: CategoricalArrays.CategoricalValue{$Int,$(CategoricalArrays.DefaultRefType)} + Number Unique: 4 + + nullcat + Summary Stats: + Length: 4 + Type: Union{Nulls.Null, CategoricalArrays.CategoricalValue{$Int,$(CategoricalArrays.DefaultRefType)}} + Number Unique: 4 + Number Missing: 0 + % Missing: 0.000000 + + """ + # Julia 0.6 + nullsecond = """ arr Summary Stats: