Sign in
◑
Theme
fuchsia
/
third_party
/
swig
/
725bc081da170662b194ca1ff5e7e75144bc0760
/
.
/
Examples
/
test-suite
/
lua
/
functors_runme.lua
blob: b9cdf73d8d426e6b231da78de8cfc0ba91acf196 [
file
]
require
(
"functors"
)
local
a
=
functors
.
Functor0
(
10
)
local
b
=
functors
.
Functor1
(
10
)
local
c
=
functors
.
Functor2
(
10
)
assert
(
a
()
==
-10
,
"a"
)
assert
(
b
(
1
)
==
11
,
"b"
)
assert
(
c
(
1
,
2
)
==
13
,
"c"
)