kuroko/test/testAssert.krk
2021-03-01 11:55:51 +09:00

15 lines
195 B
Python

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))