From d890906f1aa7ac00fc1fd46dd8ba85d89bd8d6b3 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 25 Mar 2020 23:17:48 -0300 Subject: [PATCH] Fix version tests now that the master branch is v1.x-dev --- scripts/version.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/version.lua b/scripts/version.lua index b38a23cb9..9137835c1 100644 --- a/scripts/version.lua +++ b/scripts/version.lua @@ -7,8 +7,10 @@ assert(string.sub(tostring(app.version), 1, 1) == "1") assert(string.sub(tostring(app.version), 2, 2) == ".") 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.1") > Version("1"))