Blender
V4.3
intern
cycles
test
util_md5_test.cpp
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#include "testing/testing.h"
6
7
#include "
util/md5.h
"
8
9
CCL_NAMESPACE_BEGIN
10
11
TEST
(util,
util_md5_string
)
12
{
13
/* The hash is calculated using `echo -n "Hello, World\!" | md5 | tr '[:lower:]' '[:upper:]'`. */
14
EXPECT_EQ
(
util_md5_string
(
"Hello, World!"
),
"65A8E27D8879283831B664BD8B7F0AD4"
);
15
}
16
17
CCL_NAMESPACE_END
EXPECT_EQ
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
util_md5_string
string util_md5_string(const string &str)
Definition
md5.cpp:373
md5.h
CCL_NAMESPACE_BEGIN
Definition
python.cpp:44
TEST
CCL_NAMESPACE_BEGIN TEST(util, util_md5_string)
Definition
util_md5_test.cpp:11
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0