Blender V5.0
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
9namespace blender::ocio {
10
11TEST(ocio_description, cleanup_description)
12{
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(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
std::string cleanup_description(const StringRef description)
TEST(ocio_description, cleanup_description)