Blender
V5.0
source
blender
imbuf
opencolorio
intern
description_test.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include "
description.hh
"
6
7
#include "testing/testing.h"
8
9
namespace
blender::ocio
{
10
11
TEST
(ocio_description,
cleanup_description
)
12
{
13
EXPECT_EQ
(
cleanup_description
(
""
),
""
);
14
EXPECT_EQ
(
cleanup_description
(
"\n\rfoo\r\n"
),
"foo"
);
15
EXPECT_EQ
(
cleanup_description
(
"\n\rfoo\r\nbar\r\n"
),
"foo bar"
);
16
}
17
18
}
// namespace blender::ocio
EXPECT_EQ
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
description.hh
blender::ocio
Definition
BLF_api.hh:35
blender::ocio::cleanup_description
std::string cleanup_description(const StringRef description)
Definition
description.cc:11
blender::ocio::TEST
TEST(ocio_description, cleanup_description)
Definition
description_test.cc:11
Generated on
for Blender by
doxygen
1.16.1