MCPcopy Create free account
hub / github.com/WheretIB/nullc / max2

Function max2

tests/TestExtra.cpp:107–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107const char *testMissingTests3 =
108"int max(int a, b, c){ return a > b ? (a > c ? a : c) : (b > c ? b : c); }\r\n\
109int max(int a, b){ if(a > b) return a; else return b; }\r\n\
110int max2(int a, b, c){ if(a > b) return max(a, c); else return max(b, c); }\r\n\
111int a1 = max(1, 2, 3), a2 = max(1, 0, 2), a3 = max(7, 6, 5);\r\n\
112int b1 = max2(1, 2, 3), b2 = max2(1, 0, 2), b3 = max2(7, 6, 5);\r\n\
113\r\n\

Callers 1

TestExtra.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected