mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[liba] Fix strlcpy test
This commit is contained in:
committed by
EmilieNumworks
parent
d12da1459a
commit
1467d67c0b
@@ -6,7 +6,7 @@ QUIZ_CASE(liba_strlcpy) {
|
|||||||
char * t = "Hello";
|
char * t = "Hello";
|
||||||
char buffer[16];
|
char buffer[16];
|
||||||
size_t result = strlcpy(buffer, t, 2);
|
size_t result = strlcpy(buffer, t, 2);
|
||||||
quiz_assert(result == 1);
|
quiz_assert(result == strlen(t));
|
||||||
quiz_assert(buffer[0] == 'H');
|
quiz_assert(buffer[0] == 'H');
|
||||||
quiz_assert(buffer[1] == NULL);
|
quiz_assert(buffer[1] == NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user