Add test case for version_compare_many

pull/4017/head
Jon Turney 6 years ago
parent 51e9db370a
commit 9a02340afd
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 7
      run_unittests.py

@ -691,6 +691,13 @@ class InternalTests(unittest.TestCase):
PkgConfigDependency.pkgbin_cache = {}
PkgConfigDependency.class_pkgbin = None
def test_version_compare(self):
comparefunc = mesonbuild.mesonlib.version_compare_many
for (a, b, result) in [
('0.99.beta19', '>= 0.99.beta14', True),
]:
self.assertEqual(comparefunc(a, b)[0], result)
@unittest.skipIf(is_tarball(), 'Skipping because this is a tarball release')
class DataTests(unittest.TestCase):

Loading…
Cancel
Save