Created
July 15, 2020 11:56
-
-
Save maniish-jaiin/eb2962b748a64fc073556e642edf1cb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void evaluateWhenAllOperatorAreFound() { | |
ReversePolishNotation rpn = new ReversePolishNotation(); | |
double result = rpn.evaluate("10 6 9 3 + -11 * / * 17 + 5 +"); | |
assertEquals(21.5, result, 0.1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment