Fix testing mechanism.

This commit is contained in:
James Goppert
2016-01-24 12:00:34 +11:00
parent 6009709986
commit 38211e1aff
17 changed files with 179 additions and 173 deletions
+2 -4
View File
@@ -1,7 +1,7 @@
#include <assert.h>
#include <stdio.h>
#include <matrix/integration.hpp>
#include "test_macros.hpp"
using namespace matrix;
@@ -17,10 +17,8 @@ int main()
Vector<float, 3> u = ones<float, 3, 1>();
float t = 1;
float h = 0.1f;
y.T().print();
integrate_rk4(f, y, u, t, h, y);
y.T().print();
assert(y == (ones<float, 6, 1>()*1.1f));
TEST(isEqual(y, (ones<float, 6, 1>()*1.1f)));
return 0;
}