@@ -1,8 +1,9 @@
#ifndef TEST_TOOLS
#define TEST_TOOLS
-// TODO: Make it faster to crawl source by only including what is needed by the test.
-#include "../DFPSR/includeFramework.h"
+#include "../DFPSR/includeEssentials.h"
+#include "../DFPSR/api/algorithmAPI.h"
+#include "../DFPSR/math/FVector.h"
#include <cstdlib>
#include <csignal>
@@ -1,5 +1,6 @@
#include "../testTools.h"
+#include "../../DFPSR/collection/Array.h"
START_TEST(Array)
{
+#include "../../DFPSR/api/bufferAPI.h"
START_TEST(Buffer)
@@ -1,5 +1,7 @@
+#include "../../DFPSR/api/imageAPI.h"
+#include "../../DFPSR/api/drawAPI.h"
START_TEST(Draw)
// Resources
+#include "../../DFPSR/collection/Field.h"
START_TEST(Field)
@@ -1,6 +1,7 @@
#define NO_IMPLICIT_PATH_SYNTAX
+#include "../../DFPSR/api/fileAPI.h"
START_TEST(File)
{ // Combining paths
+#include "../../DFPSR/api/filterAPI.h"
#include "../../DFPSR/base/simd.h"
AlignedImageU8 addImages_generate(ImageU8 imageA, ImageU8 imageB) {
START_TEST(Image)
{ // ImageU8
+#include "../../DFPSR/collection/List.h"
static void targetByReference(List<int32_t> &target, int32_t value) {
target.push(value);
START_TEST(Pixel)
+#include "../../DFPSR/base/SafePointer.h"
START_TEST(SafePointer)
// Simulate unaligned memory
+#include "../../DFPSR/base/endian.h"
// TODO: Test: allLanesNotEqual, allLanesLesser, allLanesGreater, allLanesLesserOrEqual, allLanesGreaterOrEqual, operand ~, smaller bit shifts.
// TODO: Test that truncateToU32 saturates to minimum and maximum values.
@@ -1,9 +1,7 @@
+#include "../../DFPSR/api/stringAPI.h"
-// TODO: Cannot use casting to parent type at the same time as automatic conversion from const char*
-// Cover everything using a single dsr::String type?
-// Use "" operand as only constructor?
void fooInPlace(dsr::String& target, const dsr::ReadableString& a, const dsr::ReadableString& b) {
string_clear(target);
string_append(target, U"Foo(");
// These tests will fail if the source code document or stored files change their encoding of line breaks.
@@ -2,6 +2,7 @@
#include "../../DFPSR/implementation/image/PackOrder.h"
+#include "../../DFPSR/api/textureAPI.h"
#define ASSERT_EQUAL_SIMD(A, B) ASSERT_COMP(A, B, allLanesEqual, "==")
#define ASSERT_NOTEQUAL_SIMD(A, B) ASSERT_COMP(A, B, !allLanesEqual, "!=")
@@ -1,5 +1,9 @@
+#include "../../DFPSR/math/UVector.h"
+#include "../../DFPSR/math/IVector.h"
+#include "../../DFPSR/math/LVector.h"
+#include "../../DFPSR/math/FVector.h"
START_TEST(Vector)
// Comparisons