test("\\{abc\\}", "{abc}", true);
test("\\{123\\}", "{123}", true);
}
private static void test(String pattern, Object output, boolean match) {
boolean result = new Regexp(pattern).compareExpected(output);
if (result != match) {
fail("Expected pattern '" + pattern + "' and output '" + output +
"' to " + (match ? "" : "not ") + "match");
}
}