a few more test suites

escapecharc now supports non-ascii
This commit is contained in:
leitner
2017-04-30 20:16:09 +00:00
parent 607801f2fd
commit 660c314341
10 changed files with 126 additions and 2 deletions

View File

@@ -49,5 +49,6 @@ int main() {
size_t i,l;
memset(buf,0,10); assert(scan_base64("Zm5vcmQ=",buf,&l)==8 && l==5 && !memcmp(buf,"fnord",6));
memset(buf,0,10); assert(scan_base64("Zm5vcmQ",buf,&l)==7 && l==5 && !memcmp(buf,"fnord",6));
memset(buf,0,10); assert(scan_base64("//8=",buf,&l)==4 && l==2 && !memcmp(buf,"\xff\xff",3));
}
#endif

View File

@@ -72,6 +72,7 @@ abort:
#ifdef UNITTEST
#include <assert.h>
#include <string.h>
int main() {
char buf[100];