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






                                     
import nre, unittest

suite "escape strings":
  test "escape strings":
    check("123".escapeRe() == "123")
    check("[]".escapeRe() == r"\[\]")
    check("()".escapeRe() == r"\(\)")