Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/numeric/numeric-separator-literal-oil-od-nsl-od-one-of.js

raw
1 // Copyright (C) 2017 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: prod-NumericLiteralSeparator
6 description: >
7 `0o` | `0O` OctalDigit NumericLiteralSeparator OctalDigit
8 info: |
9 NumericLiteralSeparator ::
10 _
11
12 OctalIntegerLiteral ::
13 0o OctalDigits
14 0O OctalDigits
15
16 OctalDigits ::
17 OctalDigit
18 OctalDigits OctalDigit
19 OctalDigits NumericLiteralSeparator OctalDigit
20
21 OctalDigit :: one of
22 0 1 2 3 4 5 6 7
23
24 features: [numeric-separator-literal]
25 ---*/
26
27 assert.sameValue(0o0_0, 0o00);
28 assert.sameValue(0o1_1, 0o11);
29 assert.sameValue(0o2_2, 0o22);
30 assert.sameValue(0o3_3, 0o33);
31 assert.sameValue(0o4_4, 0o44);
32 assert.sameValue(0o5_5, 0o55);
33 assert.sameValue(0o6_6, 0o66);
34 assert.sameValue(0o7_7, 0o77);