File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1919StaticArrays = " 90137ffa-7385-5640-81b9-e52037218182"
2020Statistics = " 10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2121StructArrays = " 09ab397b-f2b6-538f-b94a-2f83cf4a842a"
22+ Tables = " bd369af6-aec1-5ad0-b16a-f7cc5008161c"
2223Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
2324Transducers = " 28d57a85-8fef-5791-bfe6-a80928e7c999"
2425TypedTables = " 9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
Original file line number Diff line number Diff line change 11module TestCopy
22
33include (" preamble.jl" )
4+ import Tables
45using DataFrames: DataFrame, eachrow
56using StructArrays: StructVector
67using TypedTables: Table
3031 end
3132 @testset " $copy (_, eachrow(df))" begin
3233 df = DataFrame (a= [1 : 4 ;], b= [5 : 8 ;])
33- @test_broken copy (Map (identity), eachrow (df)) == ₜ df
34- # requires https://github.com/JuliaData/DataFrames.jl/pull/2055
34+ if Tables. materializer (eachrow (df)) == DataFrame
35+ # requires https://github.com/JuliaData/DataFrames.jl/pull/2055
36+ if copy in (tcopy, dcopy)
37+ @test_broken copy (Map (identity), eachrow (df); basesize= 1 ) == ₜ df
38+ else
39+ @test copy (Map (identity), eachrow (df)) == ₜ df
40+ end
41+ else
42+ @test_broken copy (Map (identity), eachrow (df)) == ₜ df
43+ end
3544 end
3645end
3746
You can’t perform that action at this time.
0 commit comments