diff options
Diffstat (limited to 'tests/mpz/t-export.c')
-rw-r--r-- | tests/mpz/t-export.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/mpz/t-export.c b/tests/mpz/t-export.c index 7592c1994..d212db03e 100644 --- a/tests/mpz/t-export.c +++ b/tests/mpz/t-export.c @@ -94,6 +94,15 @@ check_data (void) { 0x0C,0xC0,0x0B,0xB0,0x0A,0xA0,0x09,0x90, 0x08,0x80,0x07,0x70,0x06,0x60,0x05,0x50, 0x04,0x40,0x03,0x30,0x02,0x20,0x01,0x10 } }, + + { "0x155555555555555555555555", 3,1, 4,1, 1, + { 0x55,0x55,0x55,0x55, 0x2A,0xAA,0xAA,0xAA, 0x55,0x55,0x55,0x55 } }, + { "0x155555555555555555555555", 3,-1, 4,1, 1, + { 0x55,0x55,0x55,0x55, 0x2A,0xAA,0xAA,0xAA, 0x55,0x55,0x55,0x55 } }, + { "0x155555555555555555555555", 3,1, 4,-1, 1, + { 0x55,0x55,0x55,0x55, 0xAA,0xAA,0xAA,0x2A, 0x55,0x55,0x55,0x55 } }, + { "0x155555555555555555555555", 3,-1, 4,-1, 1, + { 0x55,0x55,0x55,0x55, 0xAA,0xAA,0xAA,0x2A, 0x55,0x55,0x55,0x55 } }, }; char buf[sizeof(data[0].src) + sizeof (mp_limb_t) + 128]; |