From 4138732aa8a33edeae4965bf26f4ec9e3a0d9e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Fri, 10 Nov 2023 14:20:16 +0100 Subject: [PATCH] fix tests --- test/dataframe.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dataframe.jl b/test/dataframe.jl index aa869361e..7efa1ca48 100644 --- a/test/dataframe.jl +++ b/test/dataframe.jl @@ -1183,11 +1183,11 @@ end for v in (true, false) @test first(df, 6, view=v) == DataFrame(A=1:6) @test first(df, 1, view=v) == DataFrame(A=1) - @test first(df, 0, view=v) == DataFrame() + @test first(df, 0, view=v) == DataFrame(A=Int[]) @test_throws ArgumentError first(df, -1, view=v) @test last(df, 6, view=v) == DataFrame(A=5:10) @test last(df, 1, view=v) == DataFrame(A=10) - @test last(df, 0, view=v) == DataFrame() + @test last(df, 0, view=v) == DataFrame(A=Int[]) @test_throws ArgumentError last(df, -1, view=v) end