Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
tests: urt: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 committed Feb 17, 2019
1 parent ec55700 commit e553dee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/urt.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "test_macros.hpp"
#include "float.h"
#include <matrix/math.hpp>

using namespace matrix;
Expand All @@ -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;
Expand Down

0 comments on commit e553dee

Please sign in to comment.