summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ekeyword/ekeyword_unittest.py')
-rwxr-xr-xsrc/ekeyword/ekeyword_unittest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ekeyword/ekeyword_unittest.py b/src/ekeyword/ekeyword_unittest.py
index a1d8d85..5096c71 100755
--- a/src/ekeyword/ekeyword_unittest.py
+++ b/src/ekeyword/ekeyword_unittest.py
@@ -31,14 +31,21 @@ class TestSortKeywords(unittest.TestCase):
self._test('arm -* x86', '-* arm x86')
self._test('hppa ~* amd64', '~* amd64 hppa')
- def testNonLinux(self):
+ def testMixedPlatform(self):
+ """Verify core arches get sorted before all w/suffix"""
self._test('arm-linux alpha amd64-fbsd hppa',
'alpha hppa amd64-fbsd arm-linux')
def testPrefixes(self):
+ """Verify -/~ and such get ignored for sorting"""
self._test('-hppa arm ~alpha -* ~arm-linux',
'-* ~alpha arm -hppa ~arm-linux')
+ def testPlatform(self):
+ """Verify we sort based on platform first"""
+ self._test('x86-linux ppc-macos x86-fbsd amd64-linux amd64-fbsd',
+ 'amd64-fbsd x86-fbsd amd64-linux x86-linux ppc-macos')
+
class TestDiffKeywords(unittest.TestCase):
"""Tests for diff_keywords"""