Add more tests from stringlib

This commit is contained in:
2016-03-27 13:16:41 -07:00
parent 9fefff9edf
commit f059c083c8
8 changed files with 66 additions and 0 deletions

9
tests/string_strlen.c Normal file
View File

@@ -0,0 +1,9 @@
#include "string.h"
int main(void)
{
if ( strlen("Test") != 4 ) return 1;
if ( strlen("Th\0ing") != 2 ) return 2;
if ( strlen(NULL) != 0 ) return 3;
return 0;
}