Skip to content

Commit 69ffe80

Browse files
authored
Simplify tests for new sortexp() method (#638)
1 parent d0436bb commit 69ffe80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,12 +1908,12 @@ end
19081908
end
19091909

19101910
@testset "Output ordered by unit exponent" begin
1911-
ordered = Unitful.sortexp(typeof(u"J*mol^-1*K^-1").parameters[1])
1911+
ordered = Unitful.sortexp(u"J*mol^-1*K^-1")
19121912
@test typeof(ordered[1]) <: Unitful.Unit{:Joule,<:Any}
19131913
@test typeof(ordered[2]) <: Unitful.Unit{:Kelvin,<:Any}
19141914
@test typeof(ordered[3]) <: Unitful.Unit{:Mole,<:Any}
19151915

1916-
ordered = Unitful.sortexp(typeof(u"mol*J^-1*K^-1").parameters[1])
1916+
ordered = Unitful.sortexp(u"mol*J^-1*K^-1")
19171917
@test typeof(ordered[1]) <: Unitful.Unit{:Mole,<:Any}
19181918
@test typeof(ordered[2]) <: Unitful.Unit{:Joule,<:Any}
19191919
@test typeof(ordered[3]) <: Unitful.Unit{:Kelvin,<:Any}

0 commit comments

Comments
 (0)