From 0bc41f22bb817e3df0ed1d390e7f28ad4a100332 Mon Sep 17 00:00:00 2001 From: Thatcher Chamberlin Date: Sun, 6 Dec 2020 13:27:30 -0500 Subject: [PATCH] Added display checks to Date/DateTime tests to ensure they are able to be displayed --- test/integration_dates.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration_dates.jl b/test/integration_dates.jl index 85ed3da6..b4598d4c 100644 --- a/test/integration_dates.jl +++ b/test/integration_dates.jl @@ -13,6 +13,7 @@ using Plots, Test, Dates ref_xlims = (x[1].instant.periods.value, x[end].instant.periods.value) @test Plots.ylims(p) == ref_ylims @test Plots.xlims(p) == ref_xlims + @test isa(display(p), Nothing) == true end # testset @testset "Date xlims" begin @@ -21,6 +22,7 @@ end # testset span = (Date(2019,10,31), Date(2019,11,11)) p = plot(x,y, xlims=span, widen = false) + @test isa(display(p), Nothing) == true end # testset @testset "DateTime xlims" begin @@ -29,4 +31,5 @@ end # testset span = (DateTime(2019,10,31,11,59,59), DateTime(2019,11,11,12,01,15)) p = plot(x,y, xlims=span, widen = false) + @test isa(display(p), Nothing) == true end # testset