More tests
This commit is contained in:
parent
31e9a5541d
commit
9209e89d96
@ -160,6 +160,14 @@ main(void)
|
|||||||
sodium_base64_VARIANT_URLSAFE) == -1);
|
sodium_base64_VARIANT_URLSAFE) == -1);
|
||||||
assert(sodium_base642bin(NULL, (size_t) 10U, "a*", (size_t) 2U, "*", NULL, NULL,
|
assert(sodium_base642bin(NULL, (size_t) 10U, "a*", (size_t) 2U, "*", NULL, NULL,
|
||||||
sodium_base64_VARIANT_URLSAFE) == -1);
|
sodium_base64_VARIANT_URLSAFE) == -1);
|
||||||
|
assert(sodium_base642bin(NULL, (size_t) 10U, "a==", (size_t) 3U, NULL, NULL, NULL,
|
||||||
|
sodium_base64_VARIANT_URLSAFE) == -1);
|
||||||
|
assert(sodium_base642bin(NULL, (size_t) 10U, "a=*", (size_t) 3U, NULL, NULL, NULL,
|
||||||
|
sodium_base64_VARIANT_URLSAFE) == -1);
|
||||||
|
assert(sodium_base642bin(NULL, (size_t) 10U, "a=*", (size_t) 3U, "~", NULL, NULL,
|
||||||
|
sodium_base64_VARIANT_URLSAFE) == -1);
|
||||||
|
assert(sodium_base642bin(NULL, (size_t) 10U, "a=*", (size_t) 3U, "*", NULL, NULL,
|
||||||
|
sodium_base64_VARIANT_URLSAFE) == -1);
|
||||||
|
|
||||||
for (i = 0; i < 1000; i++) {
|
for (i = 0; i < 1000; i++) {
|
||||||
assert(sizeof buf1 >= 100);
|
assert(sizeof buf1 >= 100);
|
||||||
|
Loading…
Reference in New Issue
Block a user