Size: 818 bytes.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// cs/q/trees/iterate/in_order_test.cc
#include <stdio.h>

#include <iostream>

#include "cs/q/trees/iterate.hh"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace {  // use_usings
using ::testing::AtLeast;
using ::testing::Eq;
using ::testing::FieldsAre;
using ::testing::FloatEq;
using ::testing::IsFalse;
using ::testing::IsTrue;
using ::testing::Matcher;
using ::testing::Not;
using ::testing::StrEq;
}  // namespace

namespace {
// Test cases: null checks; bad args checks, base case test,
// test that has no left subtree (skipping ctor logic), test
// that only has a right subtree chain; test with a "hidden"
// subtree meaning that there is only a "thin" and "long"
// connection from the majority of the tree to another very
// large subtree (making sure that no data are ignored).
}  // namespace
v0 (commit) © 2025 @p13i.io | Load balancer proxied to: cs-code-viewer-3:8080 in 4ms.