comparison tests/test.ini @ 78:2449fb4a89c1

rearrange test.ini file to make more sense; write another test class
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 11 Jun 2011 14:53:07 -0700
parents 1339185cbd2d
children
comparison
equal deleted inserted replaced
77:efb7a8a189e8 78:2449fb4a89c1
1 # simple app with a callback
1 [:%(here)s/objects.py:StringMunge] 2 [:%(here)s/objects.py:StringMunge]
2 . = PRE 3 . = PRE
3 delimeter = !!! 4 delimeter = !!!
4 callback = %(callback)s 5 callback = %(callback)s
5
6 [callback:%(here)s/objects.py:stringsort] 6 [callback:%(here)s/objects.py:stringsort]
7 7
8 # fibonacci sequence function
8 [fibonacci:%(here)s/objects.py:fib] 9 [fibonacci:%(here)s/objects.py:fib]
9 10
10 [readable-fibonacci:@:%(here)s/objects.py:fib] 11 # illustrate decorator syntax; bind '@' to a decorator
11
12 [@:%(here)s/objects.py:wrap] 12 [@:%(here)s/objects.py:wrap]
13 app = %(object)s 13 app = %(object)s
14 14 [readable-fibonacci:@:%(here)s/objects.py:fib]
15 [foo:@:fibonacci] 15 [foo:@:fibonacci]
16 16
17 # override: this will bind the result to fibonacci with an arg of n=5
17 [bar:fibonacci] 18 [bar:fibonacci]
18 n=5 19 n=5
19 20
21 # illustrate decorator syntax with overrides
20 [extended-fibonacci:@:four=4,five=5:fibonacci] 22 [extended-fibonacci:@:four=4,five=5:fibonacci]
21 [extended-fibonacci-2:@:five=5,eight=8:%(here)s/objects.py:fib] 23 [extended-fibonacci-2:@:five=5,eight=8:%(here)s/objects.py:fib]
24
25 # if you need more verbose control of overrides, you can have it
26 [verbose-decorator:@]
27 four = 4
28 five = 5
29 [extended-fibonacci-3:verbose-decorator:fibonacci]