~didrocks/location-service/build-with-system-gmock

« back to all changes in this revision

Viewing changes to tests/heading_test.cpp

  • Committer: Tarmac
  • Author(s): Thomas Voß
  • Date: 2013-06-14 12:29:16 UTC
  • mfrom: (11.1.1 fix-fp-comparison)
  • Revision ID: tarmac-20130614122916-vtdr529m67475e57
* Fix test-cases to rely on proper floating point comparisons.

Approved by PS Jenkins bot, Timo Jyrinki.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
            com::ubuntu::location::Heading::max().value());
42
42
    double d = dist(rng);
43
43
    com::ubuntu::location::Heading h {d* com::ubuntu::location::units::Degrees};
44
 
    EXPECT_EQ(d * com::ubuntu::location::units::Degrees, h.value);
 
44
    EXPECT_DOUBLE_EQ(d, h.value.value());
45
45
}