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

Function assert_nearly_equal

code/geometry/primitives3d.test.cpp:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Field testing: Kattis triangles
2
3void assert_nearly_equal(double a, double b) {
4 //printf("Expected: %.10f, but got %.10f\n", a, b);
5 assert_true(abs(a - b) < EPS);
6}
7
8void assert_equal(point3d a, point3d b) {
9 assert_nearly_equal(a.x, b.x);

Callers 2

assert_equalFunction · 0.70
testFunction · 0.70

Calls 1

assert_trueFunction · 0.85

Tested by

no test coverage detected