michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Correct interpretation of DIGITS michael@0: * michael@0: * @path ch07/7.6/S7.6_A4.3_T1.js michael@0: * @description Identifier is $+ANY_DIGIT michael@0: */ michael@0: michael@0: //CHECK#0-9 michael@0: var $\u0030 = 0; michael@0: if ($0 !== 0) { michael@0: $ERROR('#0: $\\u0030 = 0; $0 === 0'); michael@0: } michael@0: var $\u0031 = 1; michael@0: if ($1 !== 1) { michael@0: $ERROR('#1: $\\u0031 = 1; $1 === 1'); michael@0: } michael@0: var $\u0032 = 2; michael@0: if ($2 !== 2) { michael@0: $ERROR('#2: $\\u0032 = 2; $2 === 2'); michael@0: } michael@0: var $\u0033 = 3; michael@0: if ($3 !== 3) { michael@0: $ERROR('#3: $\\u0033 = 3; $3 === 3'); michael@0: } michael@0: var $\u0034 = 4; michael@0: if ($4 !== 4) { michael@0: $ERROR('#4: $\\u0034 = 4; $4 === 4'); michael@0: } michael@0: var $\u0035 = 5; michael@0: if ($5 !== 5) { michael@0: $ERROR('#5: $\\u0035 = 5; $5 === 5'); michael@0: } michael@0: var $\u0036 = 6; michael@0: if ($6 !== 6) { michael@0: $ERROR('#6: $\\u0036 = 6; $6 === 6'); michael@0: } michael@0: var $\u0037 = 7; michael@0: if ($7 !== 7) { michael@0: $ERROR('#7: $\\u0037 = 7; $7 === 7'); michael@0: } michael@0: var $\u0038 = 8; michael@0: if ($8 !== 8) { michael@0: $ERROR('#8: $\\u0038 = 8; $8 === 8'); michael@0: } michael@0: var $\u0039 = 9; michael@0: if ($9 !== 9) { michael@0: $ERROR('#9: $\\u0039 = 9; $9 === 9'); michael@0: } michael@0: