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

Function test

code/mathematics/floor_sum.test.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 return cnt;
22}
23void test() {
24 rep(n,0,100) {
25 rep(a,1,100) rep(b,1,100) {
26 rep(c,0,100) {
27 if (c-n*a < 0) continue;
28 // ll ans = floor_sum_super_slow(n,a,b,c);
29 ll ans2 = floor_sum_slow(n,a,b,c);
30 ll ans3 = floor_sum(n,a,b,c);
31 // assert_equal(ans,ans2, true);
32 assert_equal(ans2,ans3,true);
33 }
34 }
35 }
36}

Callers

nothing calls this directly

Calls 3

floor_sum_slowFunction · 0.85
floor_sumFunction · 0.85
assert_equalFunction · 0.50

Tested by

no test coverage detected