mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
Tests for NULL == None
[SVN r12971]
This commit is contained in:
@@ -84,6 +84,17 @@
|
||||
>>> rewrap_const_reference_string('yo, wassup?')
|
||||
'yo, wassup?'
|
||||
|
||||
|
||||
Check that None <==> NULL
|
||||
|
||||
>>> rewrap_const_reference_cstring(None)
|
||||
|
||||
But when converted to a string rvalue, None becomes 'None':
|
||||
|
||||
>>> rewrap_const_reference_string(None)
|
||||
'None'
|
||||
|
||||
|
||||
Now check implicit conversions between floating/integer types
|
||||
|
||||
>>> rewrap_const_reference_float(42)
|
||||
|
||||
Reference in New Issue
Block a user