aboutsummaryrefslogtreecommitdiff
path: root/calculator-java/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'calculator-java/src/test/java')
-rw-r--r--calculator-java/src/test/java/StatementParserTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/calculator-java/src/test/java/StatementParserTest.java b/calculator-java/src/test/java/StatementParserTest.java
index 8c2db59..ee4ab6b 100644
--- a/calculator-java/src/test/java/StatementParserTest.java
+++ b/calculator-java/src/test/java/StatementParserTest.java
@@ -111,6 +111,9 @@ public class StatementParserTest {
sp.parseStatement("b/a");
assertEquals(50.0, sp.getValue(), 0.0);
+ sp.parseStatement("b--a");
+ assertEquals(255.0, sp.getValue(), 0.0);
+
sp.parseStatement("b+a/2");
assertEquals(252.5, sp.getValue(), 0.0);