Parowicz
Parowicz
What about tests?
Can you add test cases and answer issues pointed by @akashgkrishnan?
Tests are failing because 1. `evaluateBoolExpr("0A1")` returns `'1'` ==> `false` and `true` != `true` 2. `evaluateBoolExpr("1B0")` returns `'0'` ==> `true` or `false` != `false` 3. `evaluateBoolExpr("1C0")` returns `'0'` ==> `true`...
Those operations are commutative https://en.wikipedia.org/wiki/Boolean_algebra#Laws In your code `evaluateBoolExpr("1A0")` is different from `evaluateBoolExpr("0A1")`. Evaluation strategy should not invalidate result.