Skip to content

Commit 149ed68

Browse files
committed
Add test for norm_sqr
1 parent 922247e commit 149ed68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/linalg.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ using StaticArrays, Base.Test
135135
@test vecnorm(@SMatrix [1 2; 3 4.0+im]) vecnorm([1 2; 3 4.0+im])
136136
sm = @SMatrix [1 2; 3 4.0+im]
137137
@test vecnorm(sm, 3.) vecnorm([1 2; 3 4.0+im], 3.)
138+
@test Base.LinAlg.norm_sqr(SVector(1.0,2.0)) vecnorm([1.0,2.0])^2
138139

139140
@test normalize(SVector(1,2,3)) normalize([1,2,3])
140141
@test normalize(SVector(1,2,3), 1) normalize([1,2,3], 1)

0 commit comments

Comments
 (0)