Fix version tests now that the master branch is v1.x-dev

This commit is contained in:
David Capello 2020-03-25 23:17:48 -03:00
parent e3d67e9765
commit d890906f1a

View File

@ -7,8 +7,10 @@
assert(string.sub(tostring(app.version), 1, 1) == "1") assert(string.sub(tostring(app.version), 1, 1) == "1")
assert(string.sub(tostring(app.version), 2, 2) == ".") assert(string.sub(tostring(app.version), 2, 2) == ".")
assert(app.version.major == 1) assert(app.version.major == 1)
assert(app.version.minor >= 2)
assert(app.version > Version("1.2.10-beta4")) -- We cannot test the specific app.version from the master branch
-- because it's "1.x-dev" (which is converted to "1.0-dev" as Version object)
--assert(app.version > Version("1.2.10-beta4"))
assert(Version("1") == Version("1")) assert(Version("1") == Version("1"))
assert(Version("1.1") > Version("1")) assert(Version("1.1") > Version("1"))