[test] add .test.cpp suffix to test case files

This commit is contained in:
Konstantin Käfer
2016-09-28 11:45:33 +02:00
parent a8b007daa0
commit 3f3fc7b772
60 changed files with 59 additions and 59 deletions

26
test/math/wrap.test.cpp Normal file
View File

@@ -0,0 +1,26 @@
#include <mbgl/test/util.hpp>
#include <mbgl/util/constants.hpp>
#include <mbgl/math/wrap.hpp>
using namespace mbgl;
TEST(Math, WrapHigherValue) {
ASSERT_DOUBLE_EQ(4.0, util::wrap(16.0, 0.0, 12.0));
}
TEST(Math, WrapLowerValue) {
ASSERT_DOUBLE_EQ(9.0, util::wrap(-3.0, 0.0, 12.0));
}
TEST(Math, WrapInRangeValue) {
ASSERT_DOUBLE_EQ(4.0, util::wrap(4.0, 0.0, 12.0));
}
TEST(Math, WrapMaxValue) {
ASSERT_DOUBLE_EQ(0.0, util::wrap(12.0, 0.0, 12.0));
}
TEST(Math, WrapMinValue) {
ASSERT_DOUBLE_EQ(0.0, util::wrap(0.0, 0.0, 12.0));
}