MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / assert_almost_equal

Function assert_almost_equal

tester/test_header.cpp:46–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void assert_almost_equal(double a, double b, double eps = 1e-9, bool kill = false) {
47 assert_true(abs(a - b) < eps, kill);
48}
49
50double randdouble(double a, double b) {
51 return uniform_real_distribution(a, b)(rng);

Callers 2

testFunction · 0.85
testDoubleFunction · 0.85

Calls 1

assert_trueFunction · 0.85

Tested by

no test coverage detected