We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b6d5b commit 0b2c670Copy full SHA for 0b2c670
test/core.jl
@@ -124,6 +124,7 @@ A = AxisArray(reshape(1:24, 2,3,4),
124
@test @inferred(axes(A, Axis{:x})) == @inferred(axes(A, Axis{:x}())) == Axis{:x}(.1:.1:.2)
125
@test @inferred(axes(A, Axis{:y})) == @inferred(axes(A, Axis{:y}())) == Axis{:y}(1//10:1//10:3//10)
126
@test @inferred(axes(A, Axis{:z})) == @inferred(axes(A, Axis{:z}())) == Axis{:z}(["a", "b", "c", "d"])
127
+@test axes(A, 2) == Axis{:y}(1//10:1//10:3//10)
128
129
@test Axis{:col}(1) == Axis{:col}(1)
130
@test Axis{:col}(1) != Axis{:com}(1)
@@ -140,6 +141,8 @@ A = AxisArray(reshape(1:24, 2,3,4),
140
141
@test indices(Axis{:row}(2:7)) === (Base.OneTo(6),)
142
@test indices(Axis{:row}(-1:1), 1) === Base.OneTo(3)
143
@test length(Axis{:col}(-1:2)) === 4
144
+@test AxisArrays.axisname(Axis{:foo}(1:2)) == :foo
145
+@test AxisArrays.axisname(Axis{:foo}) == :foo
146
147
# Test Timetype axis construction
148
dt, vals = DateTime(2010, 1, 2, 3, 40), randn(5,2)
0 commit comments