aboutsummaryrefslogtreecommitdiff
path: root/calculator-java/src/test/java
diff options
context:
space:
mode:
authorMaël Gassmann <mael.gassmann@students.bfh.ch>2021-06-12 18:49:07 +0200
committerMaël Gassmann <mael.gassmann@students.bfh.ch>2021-06-12 18:49:07 +0200
commit0a7958a014eb746390c1e602b0e67c1a43f94a33 (patch)
tree5c19165dd3cd5715133a13a9912f607267df09be /calculator-java/src/test/java
parented51d561ea8f4cd4c9187205d639cd891e893f25 (diff)
[~] Added empty expression error messages
Diffstat (limited to 'calculator-java/src/test/java')
-rw-r--r--calculator-java/src/test/java/StatementParserTest.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/calculator-java/src/test/java/StatementParserTest.java b/calculator-java/src/test/java/StatementParserTest.java
index ee4ab6b..ea47e4c 100644
--- a/calculator-java/src/test/java/StatementParserTest.java
+++ b/calculator-java/src/test/java/StatementParserTest.java
@@ -6,12 +6,6 @@ import static org.junit.Assert.assertEquals;
public class StatementParserTest {
StatementParser sp = new StatementParser();
- // Only testing correct expressions first
- @Test
- public void emptyExpression() {
- sp.parseStatement("");
- assertEquals(0.0, sp.getValue(), 0.0);
- }
@Test
public void oneFactor() {
@@ -123,6 +117,5 @@ public class StatementParserTest {
sp.parseStatement("let a = b+a");
assertEquals(255.0, sp.getValue(), 0.0);
}
- //TODO - test error detection
}