aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/vercmp.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-07 10:32:48 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-07 10:32:48 +0000
commit493f7d0974e238baef36d6cd15335f6d31703032 (patch)
treedf98413850d121809335ee6c202f3c4c8078e586 /tests/unit_tests/vercmp.cpp
parentMerge pull request #2845 (diff)
downloadmonero-493f7d0974e238baef36d6cd15335f6d31703032.tar.xz
util: allow non numeric version parts
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/vercmp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit_tests/vercmp.cpp b/tests/unit_tests/vercmp.cpp
index d48dfdf7c..8f359585d 100644
--- a/tests/unit_tests/vercmp.cpp
+++ b/tests/unit_tests/vercmp.cpp
@@ -40,4 +40,6 @@ TEST(vercmp, two_one) { ASSERT_TRUE(tools::vercmp("2", "1") > 0); }
TEST(vercmp, ten_nine) { ASSERT_TRUE(tools::vercmp("10", "9") > 0); }
TEST(vercmp, one_dot_ten_one_dot_nine) { ASSERT_TRUE(tools::vercmp("1.10", "1.9") > 0); }
TEST(vercmp, one_one_dot_nine) { ASSERT_TRUE(tools::vercmp("1", "1.9") < 0); }
+TEST(vercmp, to_master) { ASSERT_TRUE(tools::vercmp("1.0", "1.0-master") < 0); }
+TEST(vercmp, from_master) { ASSERT_TRUE(tools::vercmp("1.0-master", "1.1") < 0); }