9#include "testing/testing.h"
18 std::string s =
"foo bar baz";
24 std::string s =
"foo bar baz world bar";
26 EXPECT_EQ(s,
"foo hello baz world hello");
35 auto unique_check_func = [&](
const StringRef check_name) {
36 return current_names.
contains(check_name);
42 EXPECT_STREQ(
name,
"Default Name");
46 char name[64] =
"Baz";
48 EXPECT_STREQ(
name,
"Baz");
52 char name[64] =
"Foo";
54 EXPECT_STREQ(
name,
"Foo.001");
58 char name[64] =
"Baz.001";
60 EXPECT_STREQ(
name,
"Baz.002");
64 char name[64] =
"Bar.003";
66 EXPECT_STREQ(
name,
"Bar.004");
70 char name[64] =
"Big.999";
72 EXPECT_STREQ(
name,
"Big.1000");
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
size_t void BLI_uniquename_cb(blender::FunctionRef< bool(blender::StringRefNull)> unique_check, const char *defname, char delim, char *name, size_t name_maxncpy) ATTR_NONNULL(2
void BLI_string_replace(std::string &haystack, blender::StringRef needle, blender::StringRef other)
bool contains(const T &value) const
TEST(compression, filter_transpose_delta)