numeric-separator-literal-sign-minus-dds-nsl-dd.js (853B)
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: DecimalDigits NumericLiteralSeparator DecimalDigit 7 info: | 8 NumericLiteralSeparator :: 9 _ 10 11 SignedInteger :: 12 ... 13 - DecimalDigits 14 15 features: [numeric-separator-literal] 16 ---*/ 17 18 assert.sameValue(-123456789_0, -1234567890); 19 assert.sameValue(-123456789_1, -1234567891); 20 assert.sameValue(-123456789_2, -1234567892); 21 assert.sameValue(-123456789_3, -1234567893); 22 assert.sameValue(-123456789_4, -1234567894); 23 assert.sameValue(-123456789_5, -1234567895); 24 assert.sameValue(-123456789_6, -1234567896); 25 assert.sameValue(-123456789_7, -1234567897); 26 assert.sameValue(-123456789_8, -1234567898); 27 assert.sameValue(-123456789_9, -1234567899); 28 29 reportCompare(0, 0);