From e61db4fc1ea3cc21e87f4270b4e31abcb5e21188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= Date: Tue, 11 Jun 2024 11:04:42 +0200 Subject: [PATCH] Fix `IteratorSize`,`IteratorEltype` tests --- test/Tensor_test.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Tensor_test.jl b/test/Tensor_test.jl index b159b371..b38d31e3 100644 --- a/test/Tensor_test.jl +++ b/test/Tensor_test.jl @@ -189,8 +189,8 @@ data = rand(2, 2, 2) tensor = Tensor(data, (:i, :j, :k)) - @test Base.IteratorSize(tensor) == Base.HasShape() - @test Base.IteratorEltype(tensor) == eltype(data) + @test Base.IteratorSize(tensor) == Base.HasShape{3}() + @test Base.IteratorEltype(tensor) == Base.HasEltype() @test all(x -> ==(x...), zip(tensor, data)) end