Skip to content

Commit 0b83eb5

Browse files
committed
Better tests
1 parent 19d9df3 commit 0b83eb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/linalg.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using ModelingToolkit
2+
using LinearAlgebra
23
using Test
34

45
A = [
@@ -14,4 +15,6 @@ A = [
1415
0 1 1 2 2 1 1 2 2 2
1516
]
1617
N = ModelingToolkit.nullspace(A)
18+
@test size(N, 2) == 3
19+
@test rank(N) == 3
1720
@test iszero(A * N)

0 commit comments

Comments
 (0)