From 03a74d19115c649d6decec58e6725227fa9fd169 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 21 Apr 2019 00:10:56 -0300 Subject: [PATCH] Add two minor tests for Version() <= operator --- scripts/version.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/version.lua b/scripts/version.lua index b9de01894..760c674f8 100644 --- a/scripts/version.lua +++ b/scripts/version.lua @@ -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)