mirror of
https://github.com/arendst/Tasmota.git
synced 2026-03-06 07:24:57 +01:00
9 lines
196 B
Plaintext
9 lines
196 B
Plaintext
|
|
# Test exception handling with try-except blocks
|
|
try
|
|
for k: 0..1 assert({'a':1}.contains('b'), 'failure') end
|
|
except .. as e,m
|
|
assert(e == "assert_failed")
|
|
assert(m == "failure")
|
|
end
|