summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-08-26 17:25:50 +0200
committerhut <hut@lavabit.com>2010-08-26 17:25:50 +0200
commit0a8001b2a141b141e6e34b1ebcce316288ef7ab7 (patch)
tree79becf7190e9173e738c9ac39c216fafec9c30a2 /test
parent0fb328f92a939dd342b070a386bb717bd9c645b0 (diff)
downloadranger-0a8001b2a141b141e6e34b1ebcce316288ef7ab7.tar.gz
Fixed history
Diffstat (limited to 'test')
-rw-r--r--test/tc_history.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/tc_history.py b/test/tc_history.py
index 33784e14..b1161f2a 100644
--- a/test/tc_history.py
+++ b/test/tc_history.py
@@ -54,4 +54,23 @@ class Test(TestCase):
 		self.assertEqual(4, hist.bottom())
 		self.assertEqual([4,5,6], list(hist))
 
+		hist.back()
+		hist.fast_forward()
+		self.assertEqual([4,5,6], list(hist))
+		hist.back()
+		hist.back()
+		hist.fast_forward()
+		self.assertEqual([4,5,6], list(hist))
+		hist.back()
+		hist.back()
+		hist.back()
+		hist.fast_forward()
+		self.assertEqual([4,5,6], list(hist))
+		hist.back()
+		hist.back()
+		hist.back()
+		hist.back()
+		hist.fast_forward()
+		self.assertEqual([4,5,6], list(hist))
+
 if __name__ == '__main__': main()