nim-tnetstring/tests/parseErrors/t_length_too_long.nim

13 lines
236 B
Nim
Raw Normal View History

# vim: set et sta sw=4 ts=4 :
import
std/re
import tnetstring
try:
discard parse_tnetstring( "1000000000:1" )
except TNetstringParseError as err:
assert err.msg.contains( re"""Invalid data: Size more than 9 digits.""" )