(t)
| 61 | |
| 62 | |
| 63 | def test_tostr(t): |
| 64 | lineno, pat, text, groups = t |
| 65 | options = map(group_tostr, groups) |
| 66 | return 'mat!(match_%s, r"%s", r"%s", %s);' \ |
| 67 | % (lineno, pat, '' if text == "NULL" else text, ', '.join(options)) |
| 68 | |
| 69 | |
| 70 | def group_tostr(g): |