aboutsummaryrefslogtreecommitdiff
path: root/calculator-java/src/test
diff options
context:
space:
mode:
authorMaël Gassmann <mael.gassmann@students.bfh.ch>2021-06-11 20:55:12 +0200
committerMaël Gassmann <mael.gassmann@students.bfh.ch>2021-06-11 20:55:12 +0200
commitfed70f3ac817ed4943a230cb901fcd65dc6fdd0c (patch)
treeaea4de81656c677d33e4af6eb11375303d1dfdda /calculator-java/src/test
parent3baa44f1c8459713a96f4db994ee9905cc4e8df1 (diff)
[~] First totaly functional Calculator, reorganised the files, verified and added error messages
Diffstat (limited to 'calculator-java/src/test')
-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);