Added test cases

master
Aadhavan Srinivasan 2 months ago
parent 9698c4f1d8
commit e8aca8606a

@ -104,6 +104,7 @@ var reTests = []struct {
{`\d{3,4}`, "1209", []matchIndex{{0, 4}}}, {`\d{3,4}`, "1209", []matchIndex{{0, 4}}},
{`\d{3,4}`, "109", []matchIndex{{0, 3}}}, {`\d{3,4}`, "109", []matchIndex{{0, 3}}},
{`\d{3,4}`, "5", []matchIndex{}}, {`\d{3,4}`, "5", []matchIndex{}},
{`\d{3,4}`, "123135", []matchIndex{{0, 4}}},
{`\d{3,4}`, "89a-0", []matchIndex{}}, {`\d{3,4}`, "89a-0", []matchIndex{}},
{`\d{3,4}`, "ababab555", []matchIndex{{6, 9}}}, {`\d{3,4}`, "ababab555", []matchIndex{{6, 9}}},
{`\bpaint\b`, "paints", []matchIndex{}}, {`\bpaint\b`, "paints", []matchIndex{}},

Loading…
Cancel
Save