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.
4#include <gtest/gtest.h>
5
6using namespace bb;
7
8using FF = fr;
9
10class NestedContainers : public testing::Test {};
11
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}
A univariate polynomial represented by its values on {domain_start, domain_start + 1,...
Entry point for Barretenberg command-line interface.
TEST_F(IPATest, ChallengesAreZero)
Definition ipa.test.cpp:123
typename Flavor::FF FF
field< Bn254FrParams > fr
Definition fr.hpp:174
typename TupleOfContainersOverArray< bb::Univariate, FF, LENGTHS, 0, 0 >::type TupleOfUnivariates
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13