Skip to content

Commit 80924ea

Browse files
committed
Two small tests for Scalar
1 parent d1f7ce2 commit 80924ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Scalar.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
@test Scalar([1 2; 3 4]) .+ [[1 1; 1 1], [2 2; 2 2]] == [[2 3; 4 5], [3 4; 5 6]]
44
@test (Scalar(1) + Scalar(1.0))::Scalar{Float64} Scalar(2.0)
55
@test_throws ErrorException Scalar(2)[2]
6+
@test Scalar(2)[] == 2
7+
@test Tuple(Scalar(2)) == (2,)
68
end

0 commit comments

Comments
 (0)