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

Function main

test/test_expression_parsing.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13int main() {
14 {
15 using namespace Simple;
16 string exp = "1 + 2 * (3 - 4 * 5 + 2) / 2";
17 assert(evaluate(exp) == -14);
18 }
19 {
20 using namespace Unary;
21 string exp = "---1 + 2 * (-3 - -4 * ++5 + -2) / +2";
22 assert(evaluate(exp) == 14);
23 }
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected