MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / withinAmount

Function withinAmount

source/test/stat_test.cpp:7–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace Star;
6
7bool withinAmount(float value, float target, float amount) {
8 return fabs(value - target) <= amount;
9}
10
11TEST(StatTest, Set) {
12 StatSet stats;

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected