Browse Source

tests: urt: refactor

master
TSC21 6 years ago committed by Nuno Marques
parent
commit
7ab2b24e65
  1. 5
      test/urt.cpp

5
test/urt.cpp

@ -1,5 +1,4 @@
#include "test_macros.hpp" #include "test_macros.hpp"
#include "float.h"
#include <matrix/math.hpp> #include <matrix/math.hpp>
using namespace matrix; using namespace matrix;
@ -14,8 +13,8 @@ int main()
SquareMatrix<float, 3> A(data); SquareMatrix<float, 3> A(data);
for(int i=0; i<sizeof(urt); i++) { for(int i=0; i<6; i++) {
TEST(fabs(urt[i] - A.urt().data()[i]) < FLT_EPSILON); TEST(fabs(urt[i] - A.urt().data()[i]) < 1e-6f);
} }
return 0; return 0;

Loading…
Cancel
Save