24#include "testing/testing.h"
32TEST(VectorAlignmentTest, PushBack) {
59int foo_construct_calls = 0;
60int foo_destruct_calls = 0;
64 Foo() : value(5) { foo_construct_calls++; }
65 ~Foo() { foo_destruct_calls++; }
69struct VectorTest :
public testing::Test {
71 foo_construct_calls = 0;
72 foo_destruct_calls = 0;
76TEST_F(VectorTest, EmptyVectorDoesNotConstruct) {
85TEST_F(VectorTest, DestructorGetsCalled) {
94TEST_F(VectorTest, ReserveDoesNotCallConstructorsOrDestructors) {
106TEST_F(VectorTest, ResizeConstructsAndDestructsAsExpected) {
131TEST_F(VectorTest, PushPopBack) {
146TEST_F(VectorTest, CopyConstructor) {
154 for (
int i = 0; i < a.size(); ++i) {
159TEST_F(VectorTest, OperatorEquals) {
168 for (
int i = 0; i < a.size(); ++i) {
173TEST_F(VectorTest, STLFind) {
180 EXPECT_EQ(std::find(&a[0], &a[2], 1) == &a[0],
true);
181 EXPECT_EQ(std::find(&a[0], &a[2], 5) == &a[1],
true);
182 EXPECT_EQ(std::find(&a[0], &a[2], 3) == &a[2],
true);
185 EXPECT_EQ(std::find(a.begin(), a.end(), 1) == std::next(a.begin(), 0),
true);
186 EXPECT_EQ(std::find(a.begin(), a.end(), 5) == std::next(a.begin(), 1),
true);
187 EXPECT_EQ(std::find(a.begin(), a.end(), 3) == std::next(a.begin(), 2),
true);
190 EXPECT_EQ(std::find(a.begin(), a.end(), 0) == a.end(),
true);
191 EXPECT_EQ(std::find(a.begin(), a.end(), 52) == a.end(),
true);
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
TEST_F(StringFindSplitWords, Simple)
ATTR_WARN_UNUSED_RESULT const BMVert * v
local_group_size(16, 16) .push_constant(Type b
TEST(PolynomialCameraIntrinsics2, ApplyOnFocalCenter)