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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
2ceb9484
Commit
2ceb9484
authored
Feb 11, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test case
parent
085d0c56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+4
-0
No files found.
tests/run/type_inference.pyx
View file @
2ceb9484
...
@@ -116,7 +116,11 @@ def builtin_type_operations():
...
@@ -116,7 +116,11 @@ def builtin_type_operations():
assert
typeof
(
u1
)
==
"unicode object"
,
typeof
(
u1
)
assert
typeof
(
u1
)
==
"unicode object"
,
typeof
(
u1
)
u2
=
u'a'
+
u'b'
u2
=
u'a'
+
u'b'
assert
typeof
(
u2
)
==
"unicode object"
,
typeof
(
u2
)
assert
typeof
(
u2
)
==
"unicode object"
,
typeof
(
u2
)
u3
=
u'a%s'
%
u'b'
u3
=
u'a%s'
%
10
assert
typeof
(
u3
)
==
"unicode object"
,
typeof
(
u3
)
s1
=
"abc %s"
%
"x"
s1
=
"abc %s"
%
"x"
s1
=
"abc %s"
%
10
assert
typeof
(
s1
)
==
"str object"
,
typeof
(
s1
)
assert
typeof
(
s1
)
==
"str object"
,
typeof
(
s1
)
s2
=
"abc %s"
+
"x"
s2
=
"abc %s"
+
"x"
assert
typeof
(
s2
)
==
"str object"
,
typeof
(
s2
)
assert
typeof
(
s2
)
==
"str object"
,
typeof
(
s2
)
...
...
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