Mercurial > repos > public > sbplib_julia
diff test/LazyTensors/lazy_array_test.jl @ 1148:dd7325f91aa3
Merge bugfix/lazy_tensors/lazyfunctionarray
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 21 Oct 2022 21:41:43 +0200 |
parents | 805fa2ba837f |
children | 471a948cd2b2 |
line wrap: on
line diff
--- a/test/LazyTensors/lazy_array_test.jl Wed Oct 12 10:44:44 2022 +0200 +++ b/test/LazyTensors/lazy_array_test.jl Fri Oct 21 21:41:43 2022 +0200 @@ -102,4 +102,7 @@ @test_throws BoundsError LazyFunctionArray((i,j)->i*j, (3,2))[4,2] @test_throws BoundsError LazyFunctionArray((i,j)->i*j, (3,2))[2,3] + # Test that the constructor works with a restrictive function + f(x::Vararg{Int}) = sum(x) + @test LazyFunctionArray(f,(3,4)) isa LazyFunctionArray end