commit 592f46c417ec87e5b8f88774cd384f21c015b366
parent 2f924e29a9c2326b9332a71b6b8f15a2472d396d
Author: William Casarin <jb55@jb55.com>
Date: Sat, 25 May 2019 06:15:32 -0700
add another check
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/check.c b/check.c
@@ -13,7 +13,7 @@ int main()
const char desc[] = "combo(xpub661MyMwAqRbcEzDwwjzJhBnXBZpv9hdqY2JYRUtwzEZU6grFRhWkXx9c3HJ4EKR1Nvdwf5U3VoekstoKSKjfcJYhRrhMYeEzZzu2h7uZAQX/1/*)";
const char *desc_check = "j38hxvh0";
int ok = descriptor_checksum(desc, sizeof(desc)-1, checksum, sizeof(checksum));
- assert(ok);
+ assert(ok == (int)strlen(desc_check));
assert(streq(checksum, desc_check));
return 0;
}