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
Boxiang Sun
cython
Commits
9dfe25f6
Commit
9dfe25f6
authored
Oct 10, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test fixes
parent
1494945b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
tests/run/ct_DEF.pyx
tests/run/ct_DEF.pyx
+1
-1
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+10
-8
tests/run/varargdecl.pyx
tests/run/varargdecl.pyx
+2
-2
No files found.
tests/run/ct_DEF.pyx
View file @
9dfe25f6
...
...
@@ -41,7 +41,7 @@ DEF INT2 = 0x42
DEF
INT3
=
-
0x42
DEF
LONG
=
666L
DEF
FLOAT
=
12.5
DEF
STR
=
"spam"
DEF
STR
=
b
"spam"
DEF
TWO
=
TUPLE
[
1
]
DEF
FIVE
=
TWO
+
3
DEF
TRUE
=
TRUE_FALSE
[
0
]
...
...
tests/run/type_inference.pyx
View file @
9dfe25f6
...
...
@@ -13,21 +13,23 @@ from cython cimport typeof
def
simple
():
i
=
3
assert
typeof
(
i
)
==
"long"
assert
typeof
(
i
)
==
"long"
,
typeof
(
i
)
x
=
1.41
assert
typeof
(
x
)
==
"double"
assert
typeof
(
x
)
==
"double"
,
typeof
(
x
)
xptr
=
&
x
assert
typeof
(
xptr
)
==
"double *"
assert
typeof
(
xptr
)
==
"double *"
,
typeof
(
xptr
)
xptrptr
=
&
xptr
assert
typeof
(
xptrptr
)
==
"double **"
assert
typeof
(
xptrptr
)
==
"double **"
,
typeof
(
xptrptr
)
b
=
b"abc"
assert
typeof
(
b
)
==
"char *"
,
typeof
(
b
)
s
=
"abc"
assert
typeof
(
s
)
==
"
char *"
assert
typeof
(
s
)
==
"
Python object"
,
typeof
(
s
)
u
=
u"xyz"
assert
typeof
(
u
)
==
"unicode object"
assert
typeof
(
u
)
==
"unicode object"
,
typeof
(
u
)
L
=
[
1
,
2
,
3
]
assert
typeof
(
L
)
==
"list object"
assert
typeof
(
L
)
==
"list object"
,
typeof
(
L
)
t
=
(
4
,
5
,
6
)
assert
typeof
(
t
)
==
"tuple object"
assert
typeof
(
t
)
==
"tuple object"
,
typeof
(
t
)
def
multiple_assignments
():
a
=
3
...
...
tests/run/varargdecl.pyx
View file @
9dfe25f6
...
...
@@ -6,5 +6,5 @@ cdef grail(char *blarg, ...):
pass
def
test
():
grail
(
"test"
)
grail
(
"test"
,
"toast"
)
grail
(
b
"test"
)
grail
(
b"test"
,
b
"toast"
)
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