Lines Matching refs:roundtrip
243 fn roundtrip(given: &str, expected: &str) {
271 roundtrip("a", "a");
272 roundtrip(r"\xff", "\u{FF}");
275 roundtrip("☃", "☃");
280 roundtrip(r"[a]", r"[a]");
281 roundtrip(r"[a-z]", r"[a-z]");
282 roundtrip(r"[a-z--b-c--x-y]", r"[ad-wz]");
283 roundtrip(r"[^\x01-\u{10FFFF}]", "[\u{0}]");
284 roundtrip(r"[-]", r"[\-]");
285 roundtrip(r"[☃-⛄]", r"[☃-⛄]");
287 roundtrip(r"(?-u)[a]", r"(?-u:[a])");
288 roundtrip(r"(?-u)[a-z]", r"(?-u:[a-z])");
293 roundtrip(r"[\[]", r"[\[]");
294 roundtrip(r"[Z-_]", r"[Z-_]");
295 roundtrip(r"[Z-_--Z]", r"[\[-_]");
306 roundtrip(r"^", r"\A");
307 roundtrip(r"$", r"\z");
308 roundtrip(r"(?m)^", r"(?m:^)");
309 roundtrip(r"(?m)$", r"(?m:$)");
314 roundtrip(r"\b", r"\b");
315 roundtrip(r"\B", r"\B");
316 roundtrip(r"(?-u)\b", r"(?-u:\b)");
322 roundtrip("a?", "a?");
323 roundtrip("a??", "a??");
324 roundtrip("(?U)a?", "a??");
326 roundtrip("a*", "a*");
327 roundtrip("a*?", "a*?");
328 roundtrip("(?U)a*", "a*?");
330 roundtrip("a+", "a+");
331 roundtrip("a+?", "a+?");
332 roundtrip("(?U)a+", "a+?");
334 roundtrip("a{1}", "a{1}");
335 roundtrip("a{1,}", "a{1,}");
336 roundtrip("a{1,5}", "a{1,5}");
337 roundtrip("a{1}?", "a{1}?");
338 roundtrip("a{1,}?", "a{1,}?");
339 roundtrip("a{1,5}?", "a{1,5}?");
340 roundtrip("(?U)a{1}", "a{1}?");
341 roundtrip("(?U)a{1,}", "a{1,}?");
342 roundtrip("(?U)a{1,5}", "a{1,5}?");
347 roundtrip("()", "()");
348 roundtrip("(?P<foo>)", "(?P<foo>)");
349 roundtrip("(?:)", "(?:)");
351 roundtrip("(a)", "(a)");
352 roundtrip("(?P<foo>a)", "(?P<foo>a)");
353 roundtrip("(?:a)", "(?:a)");
355 roundtrip("((((a))))", "((((a))))");
360 roundtrip("|", "|");
361 roundtrip("||", "||");
363 roundtrip("a|b", "a|b");
364 roundtrip("a|b|c", "a|b|c");
365 roundtrip("foo|bar|quux", "foo|bar|quux");