OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'util.dart'; |
| 6 import 'package:expect/expect.dart'; |
| 7 |
| 8 void main() { |
| 9 description( |
| 10 'Test for regular expressions with non-character values in them, specifically
in character classes.' |
| 11 ); |
| 12 |
| 13 shouldBeNull(firstMatch("F", new RegExp(r"[\uD7FF]"))); |
| 14 shouldBeNull(firstMatch("0", new RegExp(r"[\uD800]"))); |
| 15 shouldBeNull(firstMatch("F", new RegExp(r"[\uDFFF]"))); |
| 16 shouldBeNull(firstMatch("E", new RegExp(r"[\uE000]"))); |
| 17 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDBF]"))); |
| 18 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDD0]"))); |
| 19 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDEF]"))); |
| 20 shouldBeNull(firstMatch("y", new RegExp(r"[\uFDF0]"))); |
| 21 shouldBeNull(firstMatch("y", new RegExp(r"[\uFEFF]"))); |
| 22 shouldBeNull(firstMatch("y", new RegExp(r"[\uFEFF]"))); |
| 23 shouldBeNull(firstMatch("y", new RegExp(r"[\uFFFE]"))); |
| 24 shouldBeNull(firstMatch("y", new RegExp(r"[\uFFFF]"))); |
| 25 shouldBeNull(firstMatch("y", new RegExp(r"[\u10FFFF]"))); |
| 26 shouldBeNull(firstMatch("y", new RegExp(r"[\u110000]"))); |
| 27 } |
OLD | NEW |