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

Function main

test/test_lyndon_factorization.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "smallest_cyclic_string.h"
8
9int main() {
10 string s = "abacabab";
11 vector<string> exp_fact = {"abac", "ab", "ab"};
12 vector<string> fact = duval(s);
13 assert(exp_fact == fact);
14
15 string exp_min_shift = "abababac";
16 assert(exp_min_shift == min_cyclic_string(s));
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected