Skip to content

Commit 10670ab

Browse files
committed
Add version comparison test involving pre-releases
1 parent 06a5d8b commit 10670ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/version.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ import Base.issupbuild
116116
# basic comparison
117117
VersionNumber(2, 3, 1) == VersionNumber(Int8(2), UInt32(3), Int32(1)) == v"2.3.1"
118118
@test v"2.3.0" < v"2.3.1" < v"2.4.8" < v"3.7.2"
119+
@test v"0.6.0-" < v"0.6.0-dev" < v"0.6.0-dev.123" < v"0.6.0-dev.unknown" < v"0.6.0-pre" < v"0.6.0"
119120

120121
#lowerbound and upperbound
121122
import Base: lowerbound, upperbound

0 commit comments

Comments
 (0)