Sign in
fuchsia
/
third_party
/
swig
/
decfe5dd8181d962e8b05ea531650d8589dc2b30
/
.
/
trunk
/
Examples
/
test-suite
/
python
/
typename_runme.py
blob: 59a0f1f767e2b39f9cd2d6766f22b1873fe9292e [
file
] [
log
] [
blame
]
import
typename
import
types
f
=
typename
.
Foo
()
b
=
typename
.
Bar
()
x
=
typename
.
twoFoo
(
f
)
if
not
isinstance
(
x
,
types
.
FloatType
):
print
"Wrong return type!"
y
=
typename
.
twoBar
(
b
)
if
not
isinstance
(
y
,
types
.
IntType
):
print
"Wrong return type!"