Skip to content

Commit 97859ad

Browse files
Add tests
1 parent 73c8f2b commit 97859ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/scalar.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ K = 12
7474
copy!(w, orig_w)
7575
α(w, v, u, nothing, 0.0, a, b)
7676
@test w a * (x * v) + b * orig_w
77+
78+
# Operations with UniformScalar
79+
α = ScalarOperator(1)
80+
@test α * I == α
81+
@test α + I isa AddedScalarOperator
7782
end
7883

7984
@testset "ScalarOperator Combinations" begin

0 commit comments

Comments
 (0)