Mercurial > repos > public > sbplib_julia
comparison test/LazyTensors/lazy_tensor_test.jl @ 1748:03894fd7b132 feature/grids/manifolds
Merge feature/grids/curvilinear
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 11 Sep 2024 15:41:58 +0200 |
parents | 471a948cd2b2 |
children |
comparison
equal
deleted
inserted
replaced
1695:a4c52ae93b11 | 1748:03894fd7b132 |
---|---|
1 using Test | 1 using Test |
2 using Sbplib.LazyTensors | 2 using Diffinitive.LazyTensors |
3 | 3 |
4 @testset "Generic Mapping methods" begin | 4 @testset "Generic Mapping methods" begin |
5 struct DummyMapping{T,R,D} <: LazyTensor{T,R,D} end | 5 struct DummyMapping{T,R,D} <: LazyTensor{T,R,D} end |
6 LazyTensors.apply(m::DummyMapping{T,R,D}, v, I::Vararg{Any,R}) where {T,R,D} = :apply | 6 LazyTensors.apply(m::DummyMapping{T,R,D}, v, I::Vararg{Any,R}) where {T,R,D} = :apply |
7 @test range_dim(DummyMapping{Int,2,3}()) == 2 | 7 @test range_dim(DummyMapping{Int,2,3}()) == 2 |