MCPcopy Create free account
hub / github.com/Singular/Singular / Main

Function Main

ppcc/adlib/test7.cc:266–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264};
265
266void Main() {
267 Int success = 0;
268 Int count = 0;
269 for (const char **p = testpairs; *p; p += 2) {
270 count++;
271 if (MD5::hexdigest(S(p[0]))->eq(p[1]))
272 success++;
273 }
274 Str *report =
275 S("MD5 (")->add(S(success))->add("/")->add(S(count))->add(" matches)");
276 Check(success == count, report->c_str());
277}

Callers

nothing calls this directly

Calls 5

CheckFunction · 0.85
c_strMethod · 0.80
SFunction · 0.70
eqMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected