about 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:34 +0200
commitd6cd804c94c998f4bcc165d40c2c4a948f57c04e (patch)
tree7375360b4a4b392f6de8121cbf413a077b44d7ef /test
parentea5a2b987dfdfa43dc302582bcf38b6953d0657b (diff)
downloadranger-d6cd804c94c998f4bcc165d40c2c4a948f57c04e.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))
#n137'>137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215