mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
21 lines
427 B
Python
21 lines
427 B
Python
import libfoolang
|
|
|
|
|
|
print("main.py: Running...")
|
|
|
|
for args, kwargs in [
|
|
([], {}),
|
|
(["hello"], {}),
|
|
([], {"hello": "world"}),
|
|
]:
|
|
print("Trying to call with {} and {}...".format(args, kwargs))
|
|
try:
|
|
libfoolang._get_last_exception(*args, **kwargs)
|
|
except TypeError as exc:
|
|
print(" Got a TypeError exception: {}".format(exc))
|
|
else:
|
|
print(" Success")
|
|
|
|
|
|
print("main.py: Done.")
|