diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-11 16:16:08 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-11 16:16:08 +0200 |
| commit | 309a26ec5b7b3174feb41e9d53c35549ee91419d (patch) | |
| tree | bd9f71ad8df86f6c5269f6a493866b7c7007fdf2 | |
| parent | zstr_length: do not validate the radix if ZAHL_UNSAFE is used (diff) | |
| download | libzahl-309a26ec5b7b3174feb41e9d53c35549ee91419d.tar.gz libzahl-309a26ec5b7b3174feb41e9d53c35549ee91419d.tar.bz2 libzahl-309a26ec5b7b3174feb41e9d53c35549ee91419d.tar.xz | |
test: check that zstr_length validates the radix incorrectly
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | test.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |
