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

Function test

code/mathematics/linear_congruence.test.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void test() {
21 check(3, 2, 6);
22 check(5, 2, 6);
23 check(4, 2, 6);
24 check(12, 20, 28);
25 check(12 - 28, 20 - 28, 28);
26
27 rep(it,0,10000) {
28 int a = randint(-1000,1000),
29 b = randint(-1000,1000),
30 c = randint(1,1000);
31 check(a,b,c);
32 }
33}
34
35// vim: cc=60 ts=2 sts=2 sw=2:

Callers

nothing calls this directly

Calls 2

checkFunction · 0.70
randintFunction · 0.70

Tested by

no test coverage detected