2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-07-22 01:09:02 +02:00
|
|
|
CharacterEscape :: IdentityEscapeSequence :: SourceCharacter but not
|
|
|
|
IdentifierPart
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 15.10.2.10_A5.1_T1
|
2014-07-22 01:09:02 +02:00
|
|
|
description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'"
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
|
2015-09-07 18:56:02 +02:00
|
|
|
for (var k = 0; k < non_ident.length; ++k) {
|
|
|
|
var arr = new RegExp("\\" + non_ident[k], "g").exec(non_ident);
|
2017-02-13 22:48:38 +01:00
|
|
|
assert.notSameValue(arr, null, "No match for character: " + non_ident[k]);
|
2015-09-07 18:56:02 +02:00
|
|
|
assert.sameValue(arr[0], non_ident[k]);
|
2014-07-22 01:09:02 +02:00
|
|
|
}
|