Mercurial > octave
changeset 21636:a3a412dee704
* parser.tst: Add BIST tests for 64-bit integer literal support (bug #47690)
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 20 Apr 2016 15:29:35 -0700 |
parents | 986dbd769bb1 |
children | 59ebef9680ef |
files | test/parser.tst |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/parser.tst Wed Apr 20 10:58:29 2016 +0200 +++ b/test/parser.tst Wed Apr 20 15:29:35 2016 -0700 @@ -287,6 +287,12 @@ %!assert (0B1100_0001, 0xC1) %!assert (class (0b1), "double") +## Test range of large binary and hexadecimal literals +%!assert (0x8000_0000_0000_0000, 2^63) +%!assert (0xFFFF_FFFF_FFFF_FFFF, 2^64) +%!assert (0b10000000_0000000_000000000_00000000_00000000_00000000_00000000_00000000, 2^63) +%!assert (0b11111111_1111111_111111111_11111111_11111111_11111111_11111111_11111111, 2^64) + ## Test creation of anonymous functions %!test