MCPcopy Create free account
hub / github.com/coreboot/coreboot / test_strcmp

Function test_strcmp

tests/lib/string-test.c:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static void test_strcmp(void **state)
148{
149 char str[] = "Banana";
150 char str2[] = "Banana";
151 char str3[] = "Bananas";
152
153 assert_true(strcmp(str, str3) < 0);
154 assert_int_equal(0, strcmp(str, str2));
155 assert_true(strcmp(str3, str2) > 0);
156}
157
158static void test_strncmp(void **state)
159{

Callers

nothing calls this directly

Calls 1

strcmpFunction · 0.50

Tested by

no test coverage detected