We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FixedSizeMatrix
1 parent 8177052 commit 6ad4fb8Copy full SHA for 6ad4fb8
test/runtests.jl
@@ -2,13 +2,19 @@ using Test
2
using FixedSizeArrays
3
4
@testset "FixedSizeArrays" begin
5
- v = FixedSizeVector{Float64}(undef, 3)
6
- @test length(v) == 3
7
- v .= 1:3
8
- @test v == 1:3
9
10
- m = FixedSizeMatrix{Float64}(undef, 3, 3)
11
- @test length(m) == 9
12
- m[:] .= 1:9
13
- @test m[:] == 1:9
+ @testset "FixedSizeVector" begin
+ v = FixedSizeVector{Float64}(undef, 3)
+ @test length(v) == 3
+ v .= 1:3
+ @test v == 1:3
+ end
+
+ @testset "FixedSizeMatrix" begin
14
+ m = FixedSizeMatrix{Float64}(undef, 3, 3)
15
+ m_ref = reshape(1:9, size(m))
16
+ @test length(m) == 9
17
+ m .= m_ref
18
+ @test m == m_ref
19
20
end
0 commit comments