Sign in
◑
Theme
fuchsia
/
third_party
/
swig
/
725bc081da170662b194ca1ff5e7e75144bc0760
/
.
/
Examples
/
test-suite
/
lua
/
using_pointers_runme.lua
blob: 7b0cd1a131d1418ac273a70fc5d37ab15fb76f26 [
file
]
require
(
"using_pointers"
)
local
f
=
using_pointers
.
FooBar
()
local
ret
,
msg
=
pcall
(
function
()
f
:
exception_spec
(
1
)
end
)
assert
(
not
ret
and
msg
==
10
)
ret
,
msg
=
pcall
(
function
()
f
:
exception_spec
(
2
)
end
)
assert
(
not
ret
and
msg
==
"exception message"
)