Tasmota/lib/libesp32/berry/tests/exceptions.be

8 lines
147 B
Python
Raw Normal View History

2021-12-12 18:58:14 +00:00
try
for k: 0..1 assert({'a':1}.contains('b'), 'failure') end
except .. as e,m
assert(e == "assert_failed")
assert(m == "failure")
end