Skip to content

Commit

Permalink
Add test for firstindex(::AbstractDataContainer)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw committed Aug 25, 2023
1 parent 710a5eb commit 619ef01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/obsview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@test @inferred(getobs(subset)) == getobs(var)
@test @inferred(ObsView(subset)) === subset
@test @inferred(ObsView(subset, 1:15)) === subset
@test subset[begin] == obsview(var, 1)
@test subset[end] == obsview(var, 15)
@test @inferred(subset[15]) == obsview(var, 15)
@test @inferred(subset[2:5]) == obsview(var, 2:5)
Expand Down Expand Up @@ -178,6 +179,7 @@ end
@test @inferred(A[1]) == obsview(var, 1)
@test @inferred(A[11]) == obsview(var, 11)
@test @inferred(A[15]) == obsview(var, 15)
@test A[begin] == A[1]
@test A[end] == A[15]
@test @inferred(getobs(A,1)) == getobs(var, 1)
@test @inferred(getobs(A,11)) == getobs(var, 11)
Expand Down

0 comments on commit 619ef01

Please sign in to comment.