From 619ef014abf1729d0193bfb2ba6d834971c2d43f Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Fri, 25 Aug 2023 08:50:37 +0200 Subject: [PATCH] Add test for `firstindex(::AbstractDataContainer)` --- test/obsview.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/obsview.jl b/test/obsview.jl index af7c051..f4ef316 100644 --- a/test/obsview.jl +++ b/test/obsview.jl @@ -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) @@ -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)