def test_compare_ranges(self):
     assert _compare_ranges('^1 || ^2', '^1') == 0
     assert _compare_ranges('^1 || ^2', '^2 || ^3') == 0
     assert _compare_ranges('^1 || ^2', '^3 || ^4') == 1
     assert _compare_ranges('^3 || ^4', '^1 || ^2') == -1
     assert _compare_ranges('^2 || ^3', '^1 || ^4') is None
Beispiel #2
0
 def test_compare_ranges(self):
     assert _compare_ranges("^1 || ^2", "^1") == 0
     assert _compare_ranges("^1 || ^2", "^2 || ^3") == 0
     assert _compare_ranges("^1 || ^2", "^3 || ^4") == 1
     assert _compare_ranges("^3 || ^4", "^1 || ^2") == -1
     assert _compare_ranges("^2 || ^3", "^1 || ^4") is None