Skip to content

Commit f3e4436

Browse files
committed
Fix tests on x86
1 parent 2d2bf0f commit f3e4436

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/test_pivot.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
result = QueryOperators.pivot_longer(data, (:US, :EU, :CN)) |> collect
77

88
@test length(result) == 6
9-
@test eltype(result) == NamedTuple{(:variable, :value), Tuple{Symbol, Int64}}
9+
@test eltype(result) == NamedTuple{(:variable, :value), Tuple{Symbol, Int}}
1010
@test result[1] == (variable=:US, value=1)
1111
@test result[2] == (variable=:EU, value=2)
1212
@test result[3] == (variable=:CN, value=3)
@@ -19,7 +19,7 @@
1919
result2 = QueryOperators.pivot_longer(data2, (:US, :EU)) |> collect
2020

2121
@test length(result2) == 4
22-
@test eltype(result2) == NamedTuple{(:year, :variable, :value), Tuple{Int64, Symbol, Int64}}
22+
@test eltype(result2) == NamedTuple{(:year, :variable, :value), Tuple{Int, Symbol, Int}}
2323
@test result2[1] == (year=2017, variable=:US, value=1)
2424
@test result2[2] == (year=2017, variable=:EU, value=2)
2525
@test result2[3] == (year=2018, variable=:US, value=3)
@@ -28,14 +28,14 @@
2828
# Custom names_to and values_to
2929
result3 = QueryOperators.pivot_longer(data2, (:US, :EU); names_to=:country, values_to=:sales) |> collect
3030

31-
@test eltype(result3) == NamedTuple{(:year, :country, :sales), Tuple{Int64, Symbol, Int64}}
31+
@test eltype(result3) == NamedTuple{(:year, :country, :sales), Tuple{Int, Symbol, Int}}
3232
@test result3[1] == (year=2017, country=:US, sales=1)
3333

3434
# Type promotion: mixing Int and Float
3535
data3 = QueryOperators.query([(id=1, a=1, b=2.0)])
3636
result4 = QueryOperators.pivot_longer(data3, (:a, :b)) |> collect
3737

38-
@test eltype(result4) == NamedTuple{(:id, :variable, :value), Tuple{Int64, Symbol, Float64}}
38+
@test eltype(result4) == NamedTuple{(:id, :variable, :value), Tuple{Int, Symbol, Float64}}
3939
@test result4[1] == (id=1, variable=:a, value=1.0)
4040
@test result4[2] == (id=1, variable=:b, value=2.0)
4141

@@ -97,7 +97,7 @@ end
9797
@test length(result) == 2
9898
T = eltype(result)
9999
@test fieldnames(T) == (:year, :US, :EU)
100-
@test fieldtype(T, :US) == DataValue{Int64}
100+
@test fieldtype(T, :US) == DataValue{Int}
101101
@test result[1].year == 2017
102102
@test result[1].US == DataValue(1)
103103
@test result[1].EU == DataValue(2)

0 commit comments

Comments
 (0)