MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / main

Function main

test/test_hashing.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "hashing_count_unique_substrings.h"
11
12int main() {
13 assert(compute_hash("abc") != compute_hash("abd"));
14
15 vector<string> v = {"a", "b", "abc", "b", "b", "abc"};
16 assert(group_identical_strings(v).size() == 3);
17
18 assert(count_unique_substrings("abaabcabc") == 35);
19}
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected