diff tests/test_ini.txt @ 38:f6616a5f468f

test fibonacci sequence
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 07 Jun 2011 19:17:21 -0700
parents a9eaf65d82c6
children f724db086125
line wrap: on
line diff
--- a/tests/test_ini.txt	Tue Jun 07 19:14:04 2011 -0700
+++ b/tests/test_ini.txt	Tue Jun 07 19:17:21 2011 -0700
@@ -24,3 +24,11 @@
     >>> callback = inifactory.load('callback')
     >>> callback('foo', 'bar')
     'abfoor'
+
+Lets test the Fibonnaci sequence::
+
+    >>> fib = inifactory.load('fibonacci')
+    >>> fib(0) == fib(1) == 1
+    True
+    >>> [fib(i) for i in range(5)]
+    [1, 1, 2, 3, 5]