| 11 | } |
| 12 | |
| 13 | int 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected