This is a trivial test for the linspace-class
#include <iostream>
#include <cstdlib>
#include <gtest/gtest.h>
TEST(LinspaceTest, LinspaceTest)
{
start << 1, 5;
end << 5, 1;
size_t nPoints = 5;
for (
size_t i = 0;
i < nPoints;
i++)
{
ASSERT_EQ(traj[
i](0),
i + 1);
ASSERT_EQ(traj[
i](1), 5 -
i);
}
}
int main(
int argc,
char** argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}