diff test/LazyTensors/lazy_array_test.jl @ 1395:bdcdbd4ea9cd feature/boundary_conditions

Merge with default. Comment out broken tests for boundary_conditions at sat
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Wed, 26 Jul 2023 21:35:50 +0200
parents 805fa2ba837f
children 471a948cd2b2
line wrap: on
line diff
--- a/test/LazyTensors/lazy_array_test.jl	Tue Feb 07 21:55:07 2023 +0100
+++ b/test/LazyTensors/lazy_array_test.jl	Wed Jul 26 21:35:50 2023 +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