Blender
V5.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 <gtest/gtest.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
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
TEST
#define TEST(a, b)
Definition
gpu_shader_test_lib.bsl.hh:209
EXPECT_EQ
#define EXPECT_EQ(result, expect)
Definition
gpu_shader_test_lib.bsl.hh:191
util_md5_string
string util_md5_string(const string &str)
Definition
md5.cpp:386
md5.h
CCL_NAMESPACE_BEGIN
Definition
python.cpp:41
Generated on
for Blender by
doxygen
1.18.0