Update Version tests to new API

This commit is contained in:
David Capello 2019-04-22 09:04:27 -03:00
parent 03a74d1911
commit ce14e003c8

View File

@ -28,12 +28,12 @@ local v = Version()
assert(v.major == 0)
assert(v.minor == 0)
assert(v.patch == 0)
assert(v.prerelease == "")
assert(v.prereleaseDigit == 0)
assert(v.prereleaseLabel == "")
assert(v.prereleaseNumber == 0)
v = Version("1.2.10-beta4")
assert(v.major == 1)
assert(v.minor == 2)
assert(v.patch == 10)
assert(v.prerelease == "beta")
assert(v.prereleaseDigit == 4)
assert(v.prereleaseLabel == "beta")
assert(v.prereleaseNumber == 4)