From ce14e003c84965d110df84b4b121f1fab9c75fd8 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 22 Apr 2019 09:04:27 -0300 Subject: [PATCH] Update Version tests to new API --- scripts/version.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/version.lua b/scripts/version.lua index 760c674f8..b38a23cb9 100644 --- a/scripts/version.lua +++ b/scripts/version.lua @@ -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)