Skip to content

Instantly share code, notes, and snippets.

@maniish-jaiin
Last active July 15, 2020 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maniish-jaiin/6fe863c95225b581605e729128f37867 to your computer and use it in GitHub Desktop.
Save maniish-jaiin/6fe863c95225b581605e729128f37867 to your computer and use it in GitHub Desktop.
@Test
public void removeSpacesFromTheString() {
ReversePolishNotation rpn = new ReversePolishNotation();
String[] result = rpn.getStringArray("3 4 +");
assertEquals("3", result[0]);
assertEquals("4", result[1]);
assertEquals("+", result[2]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment