commit 309a26ec5b7b3174feb41e9d53c35549ee91419d
Author:     Mattias Andrée <[email protected]>
AuthorDate: Wed May 11 16:16:08 2016 +0200
Commit:     Mattias Andrée <[email protected]>
CommitDate: Wed May 11 16:16:08 2016 +0200

    test: check that zstr_length validates the radix incorrectly
    
    Signed-off-by: Mattias Andrée <[email protected]>

diff --git a/test.c b/test.c
index 1b18b42..0fc8c52 100644
--- 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);

Reply via email to