Changeset 74:8ab9deec7d01 in rrlib_localization


Ignore:
Timestamp:
02.11.2018 00:26:39 (5 months ago)
Author:
Tobias Föhst <foehst@…>
Branch:
14.08
Children:
75:5ec26ac66b3b, 76:95b4f48d7e88, 77:86f05b9bf3bc
Phase:
public
Message:

Replaces floating point equality test by call to IsEqual

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pose.cpp

    r66 r74  
    3535 
    3636#include <cstring> 
     37#include <iomanip> 
    3738 
    3839#include "rrlib/localization/tPose.h" 
     
    285286    source << "(3, 4, 120°)"; 
    286287    source >> pose_2d; 
    287     RRLIB_UNIT_TESTS_EQUALITY(tPose2D<double>(3, 4, math::tAngle<double, math::angle::Degree>(120)), pose_2d); 
     288    RRLIB_UNIT_TESTS_ASSERT(IsEqual(tPose2D<double>(3, 4, math::tAngle<double, math::angle::Degree>(120)), pose_2d, 1E-20)); 
    288289    source.clear(); 
    289290    source << "(120)"; 
Note: See TracChangeset for help on using the changeset viewer.