Add two minor tests for Version() <= operator

This commit is contained in:
David Capello 2019-04-21 00:10:56 -03:00
parent a7bdc39761
commit 03a74d1911

View File

@ -21,6 +21,8 @@ assert(Version("1.0.1") > Version("1.0.1-beta"))
assert(Version("1.0.1") > Version("1.0.1-dev"))
assert(Version("1.0.1-beta") > Version("1.0.1-alpha"))
assert(Version("1.0.1-beta50") < Version("1.0.1-beta100"))
assert(Version("1.0.1-beta50") <= Version("1.0.1-beta100"))
assert(Version("1.0.1-beta100") <= Version("1.0.1-beta100"))
local v = Version()
assert(v.major == 0)