()
| 83 | |
| 84 | /* Test the case where the first two operands are false*/ |
| 85 | @Test |
| 86 | public void testOr03() |
| 87 | { |
| 88 | final PostfixMathCommandI c = new OrCommand(); |
| 89 | final Stack<Boolean> s = new Stack<>(); |
| 90 | |
| 91 | s.push(false); |
| 92 | s.push(false); |
| 93 | s.push(true); |
| 94 | |
| 95 | c.setCurNumberOfParameters(3); |
| 96 | |
| 97 | runOr(s, c); |
| 98 | |
| 99 | final Boolean result = s.pop(); |
| 100 | |
| 101 | assertThat("if (false,false,true) returns true", result, is(true)); |
| 102 | } |
| 103 | |
| 104 | /* Test the case where false and zero are skipped */ |
| 105 | @Test |