@@ -24,27 +24,27 @@ include("write.jl")
2424
2525@testset " PooledArrays" begin
2626
27- f = CSV. File (IOBuffer (" X\n b \n c \n a \n c " ), pool= true )
28- @test typeof (f. X) == PooledArrays. PooledArray{InlineString1 ,UInt32,1 ,Array{UInt32,1 }}
27+ f = CSV. File (IOBuffer (" X\n bbbb \n cccc \n aaaa \n cccc " ), pool= true )
28+ @test typeof (f. X) == PooledArrays. PooledArray{String7 ,UInt32,1 ,Array{UInt32,1 }}
2929 @test (length (f), length (f. names)) == (4 , 1 )
30- @test f. X == [" b " , " c " , " a " , " c " ]
30+ @test f. X == [" bbbb " , " cccc " , " aaaa " , " cccc " ]
3131 @test f. X. refs[2 ] == f. X. refs[4 ]
3232
33- f = CSV. File (IOBuffer (" X\n b \n c \n a \n c " ), pool= 0.75 )
34- @test typeof (f. X) == PooledArrays. PooledArray{InlineString1 ,UInt32,1 ,Array{UInt32,1 }}
33+ f = CSV. File (IOBuffer (" X\n bbbb \n cccc \n aaaa \n cccc " ), pool= 0.75 )
34+ @test typeof (f. X) == PooledArrays. PooledArray{String7 ,UInt32,1 ,Array{UInt32,1 }}
3535 @test (length (f), length (f. names)) == (4 , 1 )
36- @test f. X == [" b " , " c " , " a " , " c " ]
36+ @test f. X == [" bbbb " , " cccc " , " aaaa " , " cccc " ]
3737 @test f. X. refs[2 ] == f. X. refs[4 ]
3838
39- f = CSV. File (IOBuffer (" X\n b \n c \n\n c " ), pool= true , ignoreemptyrows= false )
40- @test typeof (f. X) == PooledArray{Union{Missing, InlineString1 },UInt32,1 ,Array{UInt32,1 }}
39+ f = CSV. File (IOBuffer (" X\n bbbb \n cccc \n\n cccc " ), pool= true , ignoreemptyrows= false )
40+ @test typeof (f. X) == PooledArray{Union{Missing, String7 },UInt32,1 ,Array{UInt32,1 }}
4141 @test (length (f), length (f. names)) == (4 , 1 )
4242 @test f. X[3 ] === missing
4343
44- f = CSV. File (IOBuffer (" X\n c \n c \n\n c \n c \n c \n c \n c \n c " ), pool= 0.25 , ignoreemptyrows= false )
45- @test typeof (f. X) == PooledArray{Union{Missing, InlineString1 },UInt32,1 ,Array{UInt32,1 }}
44+ f = CSV. File (IOBuffer (" X\n cccc \n cccc \n\n cccc \n cccc \n cccc \n cccc \n cccc \n cccc " ), pool= 0.25 , ignoreemptyrows= false )
45+ @test typeof (f. X) == PooledArray{Union{Missing, String7 },UInt32,1 ,Array{UInt32,1 }}
4646 @test (length (f), length (f. names)) == (9 , 1 )
47- @test isequal (f. X, [" c " , " c " , missing , " c " , " c " , " c " , " c " , " c " , " c " ])
47+ @test isequal (f. X, [" cccc " , " cccc " , missing , " cccc " , " cccc " , " cccc " , " cccc " , " cccc " , " cccc " ])
4848
4949end
5050
0 commit comments