Add more tests from stringlib

This commit is contained in:
2016-03-27 13:19:38 -07:00
parent f059c083c8
commit 4c0f1379b1
2 changed files with 14 additions and 0 deletions

13
tests/string_strcmp.c Normal file
View File

@@ -0,0 +1,13 @@
#include "string.h"
int main(void)
{
if ( strcmp(NULL, NULL) != 1 ) return 1;
if ( strcmp("Test", NULL) != 1 ) return 2;
if ( strcmp(NULL, "Test") != 1 ) return 3;
if ( strcmp("Test", "Test") != 0 ) return 4;
if ( strcmp("test", "Test") != 1 ) return 5;
if ( strcmp("Test1", "Test") != 1 ) return 6;
return 0;
}

1
tests/string_strcmp.deps Normal file
View File

@@ -0,0 +1 @@
string