Sign in
fuchsia
/
third_party
/
swig
/
3f3073547804f2e112085429ddfb691beba5a2ba
/
.
/
Examples
/
test-suite
/
python
/
functors_runme.py
blob: 98945a047985b13a51cf365393a2081e29b72dc4 [
file
] [
log
] [
blame
]
from
functors
import
*
a
=
Functor0
(
10
)
b
=
Functor1
(
10
)
c
=
Functor2
(
10
)
if
a
()!=-
10
:
raise
RuntimeError
(
"a failed"
)
if
b
(
1
)!=
11
:
raise
RuntimeError
(
"b failed"
)
if
c
(
1
,
2
)!=
13
:
raise
RuntimeError
(
"c failed"
)