()
| 106 | } |
| 107 | |
| 108 | public static void testTrivialPattern() throws Exception { |
| 109 | expect("?7".matches("\\0777")); |
| 110 | expect("\007".matches("\\a")); |
| 111 | expect("\\".matches("\\\\")); |
| 112 | expect("J".matches("\\x4A")); |
| 113 | expect("a".matches("\\x61")); |
| 114 | expect("\0078".matches("\\078")); |
| 115 | } |
| 116 | |
| 117 | public static void main(String[] args) throws Exception { |
| 118 | expect(new String(new byte[] { 99, 111, 109, 46, 101, 99, 111, 118, 97, |