Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
msgpack.test.cpp
Go to the documentation of this file.
1
#include "
barretenberg/serialize/msgpack.hpp
"
2
3
#include <gtest/gtest.h>
4
5
// Mostly to be sure the function is constexpr.
6
static_assert
(
::msgpack_detail::camel_case
(
"gas_used"
) ==
"gasUsed"
);
7
8
TEST
(MsgpackSerialize, CamelCase)
9
{
10
EXPECT_EQ(
::msgpack_detail::camel_case
(
"gas_used"
),
"gasUsed"
);
11
}
msgpack.hpp
TEST
TEST(MsgpackSerialize, CamelCase)
Definition
msgpack.test.cpp:8
msgpack_detail::camel_case
constexpr std::string camel_case(std::string_view name)
Definition
msgpack.hpp:130
src
barretenberg
serialize
msgpack.test.cpp
Generated by
1.9.8