mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
19 lines
367 B
C++
19 lines
367 B
C++
|
#include <gtest/gtest.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include "webfuse/core/string.h"
|
||
|
|
||
|
TEST(wf_string_create, Default)
|
||
|
{
|
||
|
char * value = wf_create_string("test %s/%d", "hello", 42);
|
||
|
ASSERT_STREQ("test hello/42", value);
|
||
|
free(value);
|
||
|
}
|
||
|
|
||
|
TEST(wf_string_create, EmptyString)
|
||
|
{
|
||
|
char * value = wf_create_string("");
|
||
|
ASSERT_STREQ("", value);
|
||
|
free(value);
|
||
|
}
|