Mercurial > repos > public > sbplib_julia
comparison test/testLazyTensors.jl @ 335:f4e3e71a4ff4 refactor/combine_to_one_package
Fix `using` commands to refer to local modules within the Sbplib package/module
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 25 Sep 2020 13:25:32 +0200 |
| parents | 01b851161018 |
| children | 2b0c9b30ea3b |
comparison
equal
deleted
inserted
replaced
| 334:91e015880ae6 | 335:f4e3e71a4ff4 |
|---|---|
| 1 using Test | 1 using Test |
| 2 using LazyTensors | 2 using Sbplib.LazyTensors |
| 3 using RegionIndices | 3 using Sbplib.RegionIndices |
| 4 | 4 |
| 5 @testset "Generic Mapping methods" begin | 5 @testset "Generic Mapping methods" begin |
| 6 struct DummyMapping{T,R,D} <: TensorMapping{T,R,D} end | 6 struct DummyMapping{T,R,D} <: TensorMapping{T,R,D} end |
| 7 LazyTensors.apply(m::DummyMapping{T,R,D}, v, i::NTuple{R,Index{<:Region}}) where {T,R,D} = :apply | 7 LazyTensors.apply(m::DummyMapping{T,R,D}, v, i::NTuple{R,Index{<:Region}}) where {T,R,D} = :apply |
| 8 @test range_dim(DummyMapping{Int,2,3}()) == 2 | 8 @test range_dim(DummyMapping{Int,2,3}()) == 2 |
