blob: c98e921b0039221fc4667ff2e1967a2da84ce3fb [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5var r = /[^\u{1}-\u{1000}\u{1002}-\u{2000}]/u;
6assertTrue(r.test("\u{0}"));
7assertFalse(r.test("\u{1}"));
8assertFalse(r.test("\u{1000}"));
9assertTrue(r.test("\u{1001}"));
10assertFalse(r.test("\u{1002}"));
11assertFalse(r.test("\u{2000}"));
12assertTrue(r.test("\u{2001}"));