projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78ef834
)
test fix
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Oct 2009 09:35:58 +0000
(11:35 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Oct 2009 09:35:58 +0000
(11:35 +0200)
tests/run/king1.pyx
patch
|
blob
|
history
diff --git
a/tests/run/king1.pyx
b/tests/run/king1.pyx
index 91bbfc27f8f8e035d54d0c7c26358b76c8dc3807..63e54bdb9f3217f86f9748e28e278a76754b4af3 100644
(file)
--- a/
tests/run/king1.pyx
+++ b/
tests/run/king1.pyx
@@
-1,12
+1,22
@@
__doc__ = u"""
->>> f()
+>>> uf()
+It works!
+>>> bf()
It works!
"""
-DEF STUFF = "Spam"
+DEF USTUFF = u"Spam"
+
+def uf():
+ IF USTUFF == u"Spam":
+ print "It works!"
+ ELSE:
+ print "Doesn't work"
+
+DEF BSTUFF = b"Spam"
-def f():
- IF
STUFF ==
"Spam":
- print
u
"It works!"
+def
b
f():
+ IF
BSTUFF == b
"Spam":
+ print "It works!"
ELSE:
- print
u
"Doesn't work"
+ print "Doesn't work"