kuroko/test/testAssert.krk

15 lines
195 B
Python
Raw Permalink Normal View History

2021-03-01 05:55:51 +03:00
assert 1 + 1
assert True, "Test"
try:
assert False
except AssertionError:
print("Pass")
try:
assert False, "with a message"
except AssertionError as e:
print("msg =", str(e))