Mercurial > hg > pyloader
comparison tests/test_ini.txt @ 59:6b48dee5b92b
add a failing test for wrapper of type [foo:@:fibonacci]
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 08:17:08 -0700 |
parents | f724db086125 |
children | 926caecf385d |
comparison
equal
deleted
inserted
replaced
58:2a1648a53857 | 59:6b48dee5b92b |
---|---|
31 >>> fib(0) == fib(1) == 1 | 31 >>> fib(0) == fib(1) == 1 |
32 True | 32 True |
33 >>> [fib(i) for i in range(5)] | 33 >>> [fib(i) for i in range(5)] |
34 [1, 1, 2, 3, 5] | 34 [1, 1, 2, 3, 5] |
35 | 35 |
36 Now let's test a simple wrapper:: | 36 Now let's test a simple wrapper, [readable-fibonacci:@:%(here)s/objects.py:fib]:: |
37 | 37 |
38 >>> fib = inifactory.load('readable-fibonacci') | 38 >>> fib = inifactory.load('readable-fibonacci') |
39 >>> from pprint import pprint | |
40 >>> [fib(i) for i in range(5)] | 39 >>> [fib(i) for i in range(5)] |
41 ['one', 'one', 'two', 'three', 5] | 40 ['one', 'one', 'two', 'three', 5] |
41 | |
42 A different kind of wrapper, [foo:@:fibonacci]:: | |
43 | |
44 >>> fib = inifactory.load('foo') |