summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-08 19:56:29 +0200
committerhut <hut@lavabit.com>2010-04-08 19:56:29 +0200
commit4537ca72633b0c60e6fd4700adb6b96c0a823c7b (patch)
tree9b632e2ef4fedea854a1e4199073584385d93647 /test
parent21da5a5ffbe325930ef2c01b016ce68c8cff6eca (diff)
downloadranger-4537ca72633b0c60e6fd4700adb6b96c0a823c7b.tar.gz
tc_direction: fixed
maximum=X means that the maximum value is set to X-1.
Works for lists:
d.move(maximum=len(lst))

is this counter intuitive?
Diffstat (limited to 'test')
-rw-r--r--test/tc_direction.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tc_direction.py b/test/tc_direction.py
index dd7e94ab..18f9eb4c 100644
--- a/test/tc_direction.py
+++ b/test/tc_direction.py
@@ -71,7 +71,7 @@ class TestDirections(unittest.TestCase):
 		self.assertEqual(3, d.move(direction=3))
 		self.assertEqual(5, d.move(direction=3, current=2))
 		self.assertEqual(15, d.move(direction=3, pagesize=5))
-		self.assertEqual(10, d.move(direction=3, pagesize=5, maximum=10))
+		self.assertEqual(9, d.move(direction=3, pagesize=5, maximum=10))
 		self.assertEqual(18, d.move(direction=9, override=2))
 		d2 = Direction(absolute=True)
 		self.assertEqual(5, d2.move(direction=9, override=5))