|
Macaulay2 Engine
|
Trivial harness-liveness test plus buffer / M2_arrayint round-trip coverage. More...
#include <cstdio>#include <string>#include <iostream>#include <sstream>#include <memory>#include <gtest/gtest.h>#include <mpfr.h>#include "buffer.hpp"#include "text-io.hpp"#include "util.hpp"Go to the source code of this file.
Functions | |
| bool | testfcn () |
| TEST (Nothing, ideal) | |
| TEST (Buffer, make1) | |
| TEST (Buffer, make2) | |
| TEST (Util, m2array2stdvec) | |
| TEST (Util, m2arrayint_zero) | |
| TEST (Util, m2array2stdvec_big) | |
| TEST (Util, m2array2stdvec_check) | |
Trivial harness-liveness test plus buffer / M2_arrayint round-trip coverage.
TEST(Nothing, ideal) exists to prove the test binary itself is working: if a linker glitch, ABI mismatch, or missing gtest library breaks the build, this test fails first and tells CI "engine test infrastructure broken" instead of burying that message under thousands of unrelated failures downstream. The remaining TEST(Buffer, *) and TEST(Util, *) cases pin down the engine's stream-style buffer accumulator and the stdvector_to_M2_arrayint / M2_arrayint_to_stdvector<T> round-trip helpers — the primitives every other test (and most of the engine) uses to cross the C / C++ boundary with int lists.
Alphabetical ordering makes basics-test the first gtest to execute in a default run, which is the practical reason it functions as the canary. Companion to SubsetTest.cpp and PointArray.cpp under the same file-misc-tests markdown.
Definition in file basics-test.cpp.