mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-08 04:44:20 +00:00
Update unit test to handle AssertionError instead of ValueError for #5119
This commit is contained in:
@@ -12,7 +12,7 @@ for w in split("|abc|xy|z", {'|'}):
|
||||
try:
|
||||
discard "hello".split("")
|
||||
echo "false"
|
||||
except ValueError:
|
||||
except AssertionError:
|
||||
echo "true"
|
||||
|
||||
#OUT true
|
||||
|
||||
Reference in New Issue
Block a user