mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
17 lines
371 B
Python
17 lines
371 B
Python
import libfoolang
|
|
|
|
|
|
print("main.py: Running...")
|
|
|
|
try:
|
|
libfoolang.do_something()
|
|
except libfoolang.PropertyError as exc:
|
|
print("Got a PropertyError")
|
|
msg = str(exc)
|
|
print("Message size:", len(msg))
|
|
assert msg == "A" + "B" * 9998 + "C", "Unexpected exception message"
|
|
else:
|
|
assert False, "PropertyError expected, got none"
|
|
|
|
print("main.py: Done.")
|