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
75808038
Commit
75808038
authored
Aug 11, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpp_bool test (failing)
parent
2c4afc4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/cpp_bool.pyx
tests/run/cpp_bool.pyx
+18
-0
No files found.
tests/bugs.txt
View file @
75808038
...
...
@@ -16,6 +16,7 @@ with_statement_module_level_T536
function_as_method_T494
closure_inside_cdef_T554
ipow_crash_T562
cpp_bool
# CPython regression tests that don't current work:
pyregr.test_threadsignals
...
...
tests/run/cpp_bool.pyx
0 → 100644
View file @
75808038
from
libcpp
cimport
bool
def
test_bool
(
bool
a
):
"""
>>> test_bool(True)
True
>>> test_bool(1)
True
>>> test_bool(0)
False
>>> test_bool(100)
True
>>> test_bool(None)
False
>>> test_bool([])
False
"""
return
a
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