Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
nested_containers.test.cpp
Go to the documentation of this file.
1
#include "
barretenberg/relations/nested_containers.hpp
"
2
#include "
barretenberg/ecc/curves/bn254/fr.hpp
"
3
#include "
barretenberg/polynomials/univariate.hpp
"
4
#include <gtest/gtest.h>
5
6
using namespace
bb
;
7
8
using
FF
=
fr
;
9
10
class
NestedContainers
:
public
testing::Test {};
11
12
TEST_F
(
NestedContainers
,
Univariate
)
13
{
14
static
constexpr
std::array<size_t, 3> LENGTHS = { 0, 1, 2 };
15
static
constexpr
TupleOfUnivariates<FF, LENGTHS>
tuple{};
16
static
constexpr
auto
result0 =
Univariate<FF, 0>
();
17
static
constexpr
auto
result1 =
Univariate<FF, 1>
();
18
static
constexpr
auto
result2 =
Univariate<FF, 2>
();
19
EXPECT_EQ(
std::get<0>
(tuple), result0);
20
EXPECT_EQ(
std::get<1>
(tuple), result1);
21
EXPECT_EQ(
std::get<2>
(tuple), result2);
22
}
NestedContainers
Definition
nested_containers.test.cpp:10
bb::Univariate
A univariate polynomial represented by its values on {domain_start, domain_start + 1,...
Definition
univariate.hpp:35
fr.hpp
bb
Entry point for Barretenberg command-line interface.
Definition
acir_format_getters.cpp:6
bb::TEST_F
TEST_F(IPATest, ChallengesAreZero)
Definition
ipa.test.cpp:123
bb::FF
typename Flavor::FF FF
Definition
protogalaxy.bench.cpp:16
bb::fr
field< Bn254FrParams > fr
Definition
fr.hpp:174
bb::TupleOfUnivariates
typename TupleOfContainersOverArray< bb::Univariate, FF, LENGTHS, 0, 0 >::type TupleOfUnivariates
Definition
nested_containers.hpp:49
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
nested_containers.hpp
univariate.hpp
src
barretenberg
relations
nested_containers.test.cpp
Generated by
1.9.8