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

Loading…
Cancel
Save