Skip to content

Commit

Permalink
Fix Statistics.vector_mean_overflow_test with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jan 26, 2017
1 parent 811bd54 commit 3b5dca4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/mathematics/Statistics_unittest.cc
Expand Up @@ -716,5 +716,9 @@ TEST(Statistics, vector_mean_overflow_test)
{
SGVector<float64_t> a(10);
a.set_const(std::numeric_limits<float64_t>::max());
#ifdef _MSC_VER
EXPECT_TRUE(CMath::is_infinity(CStatistics::mean(a)));
#else
EXPECT_EQ(std::numeric_limits<float64_t>::max(), CStatistics::mean(a));
#endif
}

0 comments on commit 3b5dca4

Please sign in to comment.