|
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 * Empty string has type string |
|
6 * |
|
7 * @path ch08/8.4/S8.4_A2.js |
|
8 * @description Create empty string and check it type |
|
9 */ |
|
10 |
|
11 ///////////////////////////////////////////////////////// |
|
12 // CHECK#1 |
|
13 var str = ''; |
|
14 if (typeof(str) !== 'string'){ |
|
15 $ERROR('#1: var str = \'\'; typeof(str) === \'string\'. Actual: ' + (typeof(str))); |
|
16 } |
|
17 // |
|
18 //////////////////////////////////////////////////////// |
|
19 |
|
20 ///////////////////////////////////////////////////////// |
|
21 // CHECK#2 |
|
22 var str = ""; |
|
23 if (typeof(str) !== "string"){ |
|
24 $ERROR('#2: var str = ""; typeof(str) === "string". Actual: ' + (str)); |
|
25 } |
|
26 // |
|
27 //////////////////////////////////////////////////////// |
|
28 |