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

Function test_all2

test/test_balanced_brackets.cpp:70–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void test_all2(int n) {
71 vector<string> all = generate_all2(n);
72 for (int i = 0; i < (int)all.size(); i++) {
73 assert(kth_balanced2(n, i + 1) == all[i]);
74 }
75}
76
77int main() {
78 for (int n = 1; n <= 10; n++)

Callers 1

mainFunction · 0.85

Calls 1

generate_all2Function · 0.85

Tested by

no test coverage detected