#define UTEST(x, fmt, ...)\
{\
if(!(x)){\
- LOGLINEF(LMT_ERROR, "Test (%s) failed: " fmt, #x, ##__VA_ARGS__);\
+ dstream << "Test (" #x ") failed: " fmt << std::endl; \
test_failed = true;\
}\
}
str_replace(test_str, "there", "world");
UASSERT(test_str == "Hello world");
test_str = "ThisAisAaAtest";
- str_replace_char(test_str, 'A', ' ');
+ str_replace(test_str, 'A', ' ');
UASSERT(test_str == "This is a test");
UASSERT(string_allowed("hello", "abcdefghijklmno") == true);
UASSERT(string_allowed("123", "abcdefghijklmno") == false);