Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
written_slots_tree.test.cpp
Go to the documentation of this file.
2
3#include <gtest/gtest.h>
4
5namespace bb::avm2::simulation {
6
7namespace {
8
9TEST(AvmWrittenSlotsTree, CorrectRoot)
10{
12 EXPECT_EQ(snapshot.root, FF(AVM_WRITTEN_PUBLIC_DATA_SLOTS_TREE_INITIAL_ROOT));
13 EXPECT_EQ(snapshot.nextAvailableLeafIndex, AVM_WRITTEN_PUBLIC_DATA_SLOTS_TREE_INITIAL_SIZE);
14}
15
16} // namespace
17
18} // namespace bb::avm2::simulation
#define AVM_WRITTEN_PUBLIC_DATA_SLOTS_TREE_INITIAL_ROOT
#define AVM_WRITTEN_PUBLIC_DATA_SLOTS_TREE_INITIAL_SIZE
AppendOnlyTreeSnapshot get_snapshot() const
TEST(EmitUnencryptedLogTest, Basic)
WrittenPublicDataSlotsTree build_public_data_slots_tree()
typename Flavor::FF FF