From 4ce89e14d8b3029e65e7dec8be0f36fc8f1acf10 Mon Sep 17 00:00:00 2001 From: Sebastian Stock <42280794+sostock@users.noreply.github.com> Date: Fri, 14 Apr 2023 16:24:46 +0200 Subject: [PATCH] Fix tests on Julia 1.9 (#643) * Fix tests on Julia 1.9 * Test on 1.9 * Bump version number --- .github/workflows/ci.yml | 1 + Project.toml | 2 +- test/runtests.jl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a1898ff..e08941c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: julia-version: - "1.0" - "1" + - '~1.9.0-0' - "nightly" os: - ubuntu-latest diff --git a/Project.toml b/Project.toml index 07ba03dd..a08b93b9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Unitful" uuid = "1986cc42-f94f-5a68-af5c-568840ba703d" -version = "1.13.0" +version = "1.13.1" [deps] ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9" diff --git a/test/runtests.jl b/test/runtests.jl index 6538a206..f0f09bd7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1458,7 +1458,7 @@ end @test zero(Quantity[1m, 1s]) == [0m, 0s] @test zero([1mm, missing]) == [0mm, 0mm] @test zero(Union{typeof(0.0s),Missing}[missing]) == [0.0s] - if VERSION ≥ v"1.10.0-DEV.425" + if VERSION ≥ v"1.9.0-rc1" @test zero(Union{Quantity{Int,𝐋},Missing}[1mm, missing]) == [0m, 0m] @test zero(Union{Quantity{Float64,𝐋},Missing}[1.0mm, missing]) == [0.0m, 0.0m] @test zero(Union{Quantity{Int,𝚯},Missing}[1°C, 2°F, missing]) == [0K, 0K, 0K]