Skip to content

Commit ea0447b

Browse files
committed
More test coverage
1 parent 7f1997f commit ea0447b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unittests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,10 +1689,13 @@ end
16891689
@test dimension(km).m == 0
16901690
VERSION >= v"1.9" &&
16911691
@test_throws "is not available as a symbol" dimension(km).γ
1692-
@test !iszero(km)
1692+
@test !iszero(dimension(km))
16931693
@test inv(km) == us"km^-1"
16941694
@test inv(km) == u"km^-1"
16951695

1696+
@test !iszero(dimension(SymbolicConstants.c))
1697+
@test SymbolicConstants.c isa Quantity{T,SymbolicDimensionsSingleton{R}} where {T,R}
1698+
16961699
# Constructors
16971700
@test SymbolicDimensionsSingleton(:cm) isa SymbolicDimensionsSingleton{DEFAULT_DIM_BASE_TYPE}
16981701
@test constructorof(SymbolicDimensionsSingleton) === SymbolicDimensionsSingleton

0 commit comments

Comments
 (0)