@@ -191,13 +191,22 @@ getmetadata(dir, file; kwargs...) = metadata(getpath(dir, file), kwargs...)
191
191
@test typeof (show (md)) == Void
192
192
println ()
193
193
194
- @test SASLib. typesof (Int64) == (Int64,)
195
- @test SASLib. typesof (Union{Int64,Int32}) == (Int64,Int32)
196
- @test SASLib. typesof (Union{Int64,Int32,Missings. Missing}) == (Int64,Int32,Missings. Missing)
194
+ # Deal with v0.6/v0.7 difference
195
+ # v0.6 shows Missings.Missing
196
+ # v0.7 shows Missing
197
+ ty (x) = replace (x, " Missings." , " " )
198
+
199
+ # convenient comparison routine since v0.6/v0.7 displays different order
200
+ same (x,y) = sort (ty .(string .(collect (x)))) == sort (ty .(string .(collect (y))))
201
+
202
+ @test same (SASLib. typesof (Int64), (Int64,))
203
+ @test same (SASLib. typesof (Union{Int64,Int32}), (Int64,Int32))
204
+ @test same (SASLib. typesof (Union{Int64,Int32,Missings. Missing}),
205
+ (Int64,Int32,Missings. Missing))
197
206
198
207
@test SASLib. typesfmt ((Int64,)) == " Int64"
199
208
@test SASLib. typesfmt ((Int64,Int32)) == " Int64/Int32"
200
- @test SASLib. typesfmt ((Int64,Int32,Missings. Missing)) == " Int64/Int32/Missings. Missing"
209
+ @test ty ( SASLib. typesfmt ((Int64,Int32,Missings. Missing))) == " Int64/Int32/Missing"
201
210
@test SASLib. typesfmt ((Int64,Int32); excludemissing= true ) == " Int64/Int32"
202
211
@test SASLib. typesfmt ((Int64,Int32,Missings. Missing); excludemissing= true ) == " Int64/Int32"
203
212
@test SASLib. colfmt (md)[1 ] == " ACTUAL(Float64)"
0 commit comments