libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

commit 309a26ec5b7b3174feb41e9d53c35549ee91419d
parent 5e7e97338ce46c8cad125ffb0ea204ac9b7d51cb
Author: Mattias Andrée <maandree@kth.se>
Date:   Wed, 11 May 2016 16:16:08 +0200

test: check that zstr_length validates the radix incorrectly

Signed-off-by: Mattias Andrée <maandree@kth.se>

Diffstat:
Mtest.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/test.c b/test.c @@ -831,6 +831,10 @@ main(void) assert_nr(zmodpowu(a, _0, 1, _0)); assert_nr(zmodpowu(a, _1, 0, _0)); assert_nr((zneg(_1, _1), zmodpowu(a, _1, 0, _0))); zneg(_1, _1); + assert_nr(zstr_length(a, 0)); + assert_nr(zstr_length(a, 1)); + zstr_length(a, 2); + zstr_length(a, 3); #endif zsetu(a, 1LL);