(x: Expression)
| 51 | num: '187346192378619283461239876129819230642376891238764923847000000000000000000000', |
| 52 | }) |
| 53 | ).toMatchInlineSnapshot( |
| 54 | `{num: "187346192378619283461239876129819230642376891238764923847e+21"}` |
| 55 | ); |
| 56 | |
| 57 | expect( |
| 58 | ce.expr({ |
| 59 | num: '18734619237861928346123987612981923064237689123876492384769123786412837040123612308964123876412307864012346012837491237864192837641923876419238764123987642198764987162398716239871236912347619238764n', |
| 60 | }) |
| 61 | ).toMatchInlineSnapshot(` |
| 62 | { |
| 63 | num: "18734619237861928346123987612981923064237689123876492384769123786412837040123612308964123876412307864012346012837491237864192837641923876419238764123987642198764987162398716239871236912347619238764" |
| 64 | } |
| 65 | `); |
| 66 | }); |
| 67 | }); |
| 68 | |
| 69 | function checkProps(x: Expression): string { |
| 70 | const result: string[] = []; |
| 71 | result.push('number literal: ' + x.isNumberLiteral); |
| 72 | result.push('type: ' + x.type.toString()); |
| 73 | result.push('real: ' + x.isExtendedReal); |
| 74 | result.push('rational: ' + x.isRational); |
| 75 | result.push('integer: ' + x.isInteger); |
| 76 | result.push('positive (>0): ' + x.isPositive); |
| 77 | result.push('negative (<0): ' + x.isNegative); |
no test coverage detected