summary refs log tree commit diff stats
path: root/tests/stdlib/nre/escape.nim
blob: 5e7dc0c0ef888459021eda44837873661ea01f87 (plain) (blame)
1
2
3
4
5
6
7
import nre, unittest

block: # escape strings
  block: # escape strings
    check("123".escapeRe() == "123")
    check("[]".escapeRe() == r"\[\]")
    check("()".escapeRe() == r"\(\)")