@@ -24,27 +24,27 @@ include("write.jl")
24
24
25
25
@testset " PooledArrays" begin
26
26
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 }}
29
29
@test (length (f), length (f. names)) == (4 , 1 )
30
- @test f. X == [" b " , " c " , " a " , " c " ]
30
+ @test f. X == [" bbbb " , " cccc " , " aaaa " , " cccc " ]
31
31
@test f. X. refs[2 ] == f. X. refs[4 ]
32
32
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 }}
35
35
@test (length (f), length (f. names)) == (4 , 1 )
36
- @test f. X == [" b " , " c " , " a " , " c " ]
36
+ @test f. X == [" bbbb " , " cccc " , " aaaa " , " cccc " ]
37
37
@test f. X. refs[2 ] == f. X. refs[4 ]
38
38
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 }}
41
41
@test (length (f), length (f. names)) == (4 , 1 )
42
42
@test f. X[3 ] === missing
43
43
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 }}
46
46
@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 " ])
48
48
49
49
end
50
50
0 commit comments