Skip to content

Commit dda204d

Browse files
committed
Fix version check
1 parent 64daf52 commit dda204d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ include("test_util.jl")
4141

4242
# Don't attempt to import Mooncake on 1.12
4343
# https://github.com/chalk-lab/Mooncake.jl/pull/545
44-
IS_PRERELEASE = VERSION >= v"1.12"
44+
# the check against v"1.12-" includes prerelease versions,
45+
# whereas >=v"1.12" would only catch 1.12.0 onwards
46+
IS_PRERELEASE = VERSION >= v"1.12-"
4547

4648
if !IS_PRERELEASE
4749
Pkg.add("Mooncake")

0 commit comments

Comments
 (0)