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 1222072 commit 80db94dCopy full SHA for 80db94d
test/test_sea_level.jl
@@ -0,0 +1,18 @@
1
+using Test
2
+
3
+x = SeaLevel(:Spratt_800ka)
4
5
+@test length(x) === length(x.elevation)
6
+@test size(x) === size(x.elevation)
7
+@test eachindex(x) === eachindex(x.elevation)
8
+@test axes(x) === axes(x.elevation)
9
+@test curve_name(x) === :Spratt_800ka
10
+@test x[1] == x.elevation[1]
11
+@test x[1,1] == (x.elevation[1], x.age[1])
12
+@test x[1,799] == (x.elevation[1], x.age[799])
13
+@test x[(1,)] == (x.elevation[1], x.age[1])
14
+@test x[(799,)] == (x.elevation[799], x.age[799])
15
16
+x_rev = SeaLevel(:Spratt_800ka; flip_elevation = true, flip_age = true)
17
+@test x.elevation == reverse(x_rev.elevation)
18
+@test x.age == reverse(x_rev.age)
0 commit comments