Mercurial > repos > public > sbplib_julia
comparison test/Grids/grid_test.jl @ 1275:dcd8654ca33b refactor/grids
Remove getcomponent stubs since we might have a cleaner way to solve it with map or lazymap
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 26 Feb 2023 11:53:23 +0100 |
parents | 7fab13c07412 |
children | 75a65db29be1 |
comparison
equal
deleted
inserted
replaced
1273:7fab13c07412 | 1275:dcd8654ca33b |
---|---|
42 # Multi-argument functions | 42 # Multi-argument functions |
43 f(x,y) = sin(x)*cos(y) | 43 f(x,y) = sin(x)*cos(y) |
44 @test eval_on(g, f) == map(x̄->f(x̄...), g) | 44 @test eval_on(g, f) == map(x̄->f(x̄...), g) |
45 end | 45 end |
46 | 46 |
47 @testset "getcomponent" begin | |
48 @test_broken false | |
49 end | |
50 | |
51 @testset "_ncomponents" begin | 47 @testset "_ncomponents" begin |
52 @test Grids._ncomponents(Int) == 1 | 48 @test Grids._ncomponents(Int) == 1 |
53 @test Grids._ncomponents(Float64) == 1 | 49 @test Grids._ncomponents(Float64) == 1 |
54 @test Grids._ncomponents(Rational) == 1 | 50 @test Grids._ncomponents(Rational) == 1 |
55 | 51 |