a few more test suites
escapecharc now supports non-ascii
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -72,6 +72,7 @@ abort:
|
||||
|
||||
#ifdef UNITTEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
int main() {
|
||||
char buf[100];
|
||||
|
||||
Reference in New Issue
Block a user