mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Add sample test for assertions with messages
This commit is contained in:
parent
2563f64670
commit
ac9640f73e
@ -42,3 +42,10 @@ try:
|
|||||||
f1()
|
f1()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print("PASS 04")
|
print("PASS 04")
|
||||||
|
|
||||||
|
|
||||||
|
assert True, "Msg"
|
||||||
|
try:
|
||||||
|
assert False, "Msg"
|
||||||
|
except AssertionError:
|
||||||
|
print("PASS 05")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user