Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f76ca90f
Commit
f76ca90f
authored
Feb 06, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test after changing type inference for unicode indexing
parent
29945fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+2
-2
No files found.
tests/run/type_inference.pyx
View file @
f76ca90f
...
@@ -98,7 +98,7 @@ def indexing():
...
@@ -98,7 +98,7 @@ def indexing():
u
=
u"xyz"
u
=
u"xyz"
assert
typeof
(
u
)
==
"unicode object"
,
typeof
(
u
)
assert
typeof
(
u
)
==
"unicode object"
,
typeof
(
u
)
u1
=
u
[
1
]
u1
=
u
[
1
]
assert
typeof
(
u1
)
==
"Py_U
NICODE
"
,
typeof
(
u1
)
assert
typeof
(
u1
)
==
"Py_U
CS4
"
,
typeof
(
u1
)
s
=
"xyz"
s
=
"xyz"
assert
typeof
(
s
)
==
"str object"
,
typeof
(
s
)
assert
typeof
(
s
)
==
"str object"
,
typeof
(
s
)
s1
=
s
[
1
]
s1
=
s
[
1
]
...
@@ -313,7 +313,7 @@ def loop_over_str():
...
@@ -313,7 +313,7 @@ def loop_over_str():
def
loop_over_unicode
():
def
loop_over_unicode
():
"""
"""
>>> print( loop_over_unicode() )
>>> print( loop_over_unicode() )
Py_U
NICODE
Py_U
CS4
"""
"""
cdef
unicode
ustring
=
u'abcdefg'
cdef
unicode
ustring
=
u'abcdefg'
for
uchar
in
ustring
:
for
uchar
in
ustring
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment