From 69ffe801024a3b67e9414f895101c9e3292c47ab Mon Sep 17 00:00:00 2001 From: michikawa07 <44316089+michikawa07@users.noreply.github.com> Date: Tue, 4 Apr 2023 15:20:47 +0900 Subject: [PATCH] Simplify tests for new sortexp() method (#638) --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 583c5cd3..6538a206 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1908,12 +1908,12 @@ end end @testset "Output ordered by unit exponent" begin - ordered = Unitful.sortexp(typeof(u"J*mol^-1*K^-1").parameters[1]) + ordered = Unitful.sortexp(u"J*mol^-1*K^-1") @test typeof(ordered[1]) <: Unitful.Unit{:Joule,<:Any} @test typeof(ordered[2]) <: Unitful.Unit{:Kelvin,<:Any} @test typeof(ordered[3]) <: Unitful.Unit{:Mole,<:Any} - ordered = Unitful.sortexp(typeof(u"mol*J^-1*K^-1").parameters[1]) + ordered = Unitful.sortexp(u"mol*J^-1*K^-1") @test typeof(ordered[1]) <: Unitful.Unit{:Mole,<:Any} @test typeof(ordered[2]) <: Unitful.Unit{:Joule,<:Any} @test typeof(ordered[3]) <: Unitful.Unit{:Kelvin,<:Any}