Needed to remove more dead code.
This commit is contained in:
parent
03be0884a4
commit
b61dd167b8
9 changed files with 0 additions and 91 deletions
|
|
@ -3,7 +3,6 @@
|
|||
#include "dinkyecs.hpp"
|
||||
#include "config.hpp"
|
||||
#include <iostream>
|
||||
#include "easings.hpp"
|
||||
|
||||
using namespace components;
|
||||
using namespace DinkyECS;
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
#include <catch2/catch_test_macros.hpp>
|
||||
#include "easings.hpp"
|
||||
#include <cmath>
|
||||
|
||||
TEST_CASE("make sure the easing functions at least run", "[easings]") {
|
||||
double out = ease::sine(1.3);
|
||||
REQUIRE(out <= 1.0);
|
||||
|
||||
out = ease::out_circ(3.444);
|
||||
REQUIRE(std::isnan(out));
|
||||
|
||||
out = ease::out_bounce(1.13);
|
||||
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);
|
||||
REQUIRE(out < 250.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue