js/src/tests/test262/ch08/8.4/S8.4_A10.js

branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
equal deleted inserted replaced
-1:000000000000 0:a4475a973886
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /**
5 * Both unicode and ascii chars are allowed
6 *
7 * @path ch08/8.4/S8.4_A10.js
8 * @description Create string using both unicode and ascii chars
9 */
10
11 //////////////////////////////////////////////////////////////////////////////
12 //CHECK#1
13 var __str = "\u0041A\u0042B\u0043C";
14 if (__str !== 'AABBCC'){
15 $ERROR('#1: var __str = "\\u0041A\\u0042B\\u0043C"; __str === \'AABBCC\'. Actual: ' + (__str));
16 };
17 //
18 //////////////////////////////////////////////////////////////////////////////
19
20 //////////////////////////////////////////////////////////////////////////////
21 //CHECK#2
22 var __str__ = "\u0041\u0042\u0043"+'ABC';
23 if (__str__ !== 'ABCABC'){
24 $ERROR('#2: var __str__ = "\\u0041\\u0042\\u0043"+\'ABC\'; __str__ === \'ABCABC\'. Actual: ' + (__str__));
25 };
26 //
27 //////////////////////////////////////////////////////////////////////////////
28
29 //////////////////////////////////////////////////////////////////////////////
30 //CHECK#3
31 var str__ = "ABC"+'\u0041\u0042\u0043';
32 if (str__ !== "ABCABC"){
33 $ERROR('#2: var str__ = "ABC"+\'\\u0041\\u0042\\u0043\'; str__ === "ABCABC". Actual: ' + (str__));
34 };
35 //
36 //////////////////////////////////////////////////////////////////////////////
37

mercurial