Skip to content

Commit

Permalink
Fix borked indentation in tests module
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Aug 25, 2015
1 parent 53c10c2 commit f5d537b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions natsort/tests.py
@@ -1,7 +1,7 @@
# Tests for natural order sorting module.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: May 11, 2014
# Last Change: August 25, 2015
# URL: https://github.com/xolox/python-naturalsort

# Standard library modules.
Expand All @@ -14,16 +14,16 @@ class NaturalSortTestCase(unittest.TestCase):

def runTest(self):

# This is plain old sorting (what we don't want).
assert sorted(['1', '5', '10', '50']) == ['1', '10', '5', '50']
# This is plain old sorting (what we don't want).
assert sorted(['1', '5', '10', '50']) == ['1', '10', '5', '50']

# This is version sorting (what we're after).
assert natsort(['1', '5', '10', '50']) == ['1', '5', '10', '50']
# This is version sorting (what we're after).
assert natsort(['1', '5', '10', '50']) == ['1', '5', '10', '50']

# This is version sorting reversed.
assert natsort(['1', '5', '10', '50'], reverse=True) == ['50', '10', '5', '1']
# This is version sorting reversed.
assert natsort(['1', '5', '10', '50'], reverse=True) == ['50', '10', '5', '1']

# This covers a previously fixed bug. I've purposefully shuffled the
# order on the left side to avoid false positives caused by stable
# sorting.
assert natsort(['1.5', '1.0']) == ['1.0', '1.5']
# This covers a previously fixed bug. I've purposefully shuffled the
# order on the left side to avoid false positives caused by stable
# sorting.
assert natsort(['1.5', '1.0']) == ['1.0', '1.5']

0 comments on commit f5d537b

Please sign in to comment.