6 #include "testing/testing.h"
10 TEST(index_range, DefaultConstructor)
22 TEST(index_range, SingleElementRange)
37 TEST(index_range, MultipleElementRange)
48 for (
int i = 0; i < 4; i++) {
53 TEST(index_range, SubscriptOperator)
80 TEST(index_range, Contains)
108 TEST(index_range, OneBeforeStart)
141 auto slice =
a.drop_back(2);
150 auto slice =
a.drop_back(
a.size());
151 EXPECT_TRUE(slice.is_empty());
157 auto slice =
a.drop_front(1);
164 TEST(index_range, DropFrontLargeN)
171 TEST(index_range, DropFrontAll)
187 TEST(index_range, TakeFrontLargeN)
197 auto slice =
a.take_back(2);
203 TEST(index_range, TakeBackLargeN)
225 std::array<int, range[0]> compiles = {1};
230 TEST(index_range, GenericAlgorithms)
233 EXPECT_TRUE(std::any_of(range.begin(), range.end(), [](
int v) { return v == 6; }));
234 EXPECT_FALSE(std::any_of(range.begin(), range.end(), [](
int v) { return v == 20; }));
235 EXPECT_EQ(std::count_if(range.begin(), range.end(), [](
int v) { return v < 7; }), 3);
#define BLI_STATIC_ASSERT(a, msg)
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
Strict compiler flags for areas of code we want to ensure don't do conversions without us knowing abo...
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a vector
ATTR_WARN_UNUSED_RESULT const BMVert * v
constexpr int64_t one_before_start() const
constexpr int64_t first() const
constexpr int64_t one_after_last() const
Span< int64_t > as_span() const
constexpr int64_t last(const int64_t n=0) const
constexpr int64_t size() const
constexpr bool is_empty() const
constexpr IndexRange after(int64_t n) const
constexpr int64_t start() const
constexpr IndexRange before(int64_t n) const
constexpr Iterator begin() const
constexpr IndexRange slice(int64_t start, int64_t size) const
constexpr bool contains(int64_t value) const
constexpr int64_t size() const
TEST(any, DefaultConstructor)