2024-07-12 22:29:04 +08:00
|
|
|
// This file will be compiled like a real C++ program,
|
|
|
|
// and we do have the luxury to use the standard libraries.
|
|
|
|
// That is if the nix flakes do not have issues... especially on msys2...
|
2024-08-04 14:05:35 +08:00
|
|
|
|
2024-07-12 22:29:04 +08:00
|
|
|
#include <cstdint>
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib>
|
2024-08-04 14:05:35 +08:00
|
|
|
|
2024-08-07 15:13:53 +08:00
|
|
|
// Special macro to inform `#include <irrt/*>` that we are testing.
|
2024-08-04 14:05:35 +08:00
|
|
|
#define IRRT_TESTING
|
|
|
|
|
2024-08-07 15:13:53 +08:00
|
|
|
// Note that failure unit tests are not supported.
|
|
|
|
|
2024-07-12 22:29:04 +08:00
|
|
|
#include <test/test_core.hpp>
|
2024-07-28 16:08:37 +08:00
|
|
|
#include <test/test_ndarray_basic.hpp>
|
2024-08-07 15:13:53 +08:00
|
|
|
#include <test/test_ndarray_broadcast.hpp>
|
|
|
|
#include <test/test_ndarray_indexing.hpp>
|
2024-07-12 22:29:04 +08:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
test::core::run();
|
2024-07-28 16:08:37 +08:00
|
|
|
test::ndarray_basic::run();
|
2024-08-07 15:13:53 +08:00
|
|
|
test::ndarray_indexing::run();
|
|
|
|
test::ndarray_broadcast::run();
|
2024-07-12 22:29:04 +08:00
|
|
|
return 0;
|
|
|
|
}
|