Final little fixes for testing.
This commit is contained in:
parent
5ed8196c80
commit
2baa044695
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,10 @@ TEST_CASE("make sure the easing functions at least run", "[easings]") {
|
||||||
out = ease::out_bounce(1.13);
|
out = ease::out_bounce(1.13);
|
||||||
REQUIRE(out <= 10 );
|
REQUIRE(out <= 10 );
|
||||||
|
|
||||||
|
out = ease::out_bounce(out);
|
||||||
|
out = ease::out_bounce(out);
|
||||||
|
out = ease::out_bounce(out);
|
||||||
|
|
||||||
out = ease::in_out_back(3.4);
|
out = ease::in_out_back(3.4);
|
||||||
REQUIRE(out < 250.0);
|
REQUIRE(out < 250.0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ TEST_CASE("camera control", "[map]") {
|
||||||
|
|
||||||
Point center = map.center_camera({10,10}, 5, 5);
|
Point center = map.center_camera({10,10}, 5, 5);
|
||||||
|
|
||||||
|
map.dump(center.x, center.y);
|
||||||
REQUIRE(center.x == 8);
|
REQUIRE(center.x == 8);
|
||||||
REQUIRE(center.y == 8);
|
REQUIRE(center.y == 8);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue