gpp_test_utils_test

Contents:

gpp_test_utils_test.hpp

namespace optimal_learning

Macro to allow restrict as a keyword for C++ compilation and CUDA/nvcc compilation. See related entry in gpp_common.hpp for more details.

gpp_test_utils_test.cpp

This file contains functions for testing the functions and classes in gpp_test_utils.hpp. These tests are generally pretty simple since these functions implicitly work; e.g., if CheckDoubleWithinRelative() were wrong, other tests wouldn’t make any sense.

TODO(GH-122): implement the rest of the unit tests for gpp_test_utils

namespace optimal_learning

Macro to allow restrict as a keyword for C++ compilation and CUDA/nvcc compilation. See related entry in gpp_common.hpp for more details.

Functions

int TestUtilsTests()

Checks the correctness of the functions in gpp_test_utils.hpp.

Returns:
number of test failures: 0 if all domain functions are working properly