MCPcopy Create free account
hub / github.com/PCGen/pcgen / testOr03

Method testOr03

code/src/test/plugin/jepcommands/OrCommandTest.java:85–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

runOrMethod · 0.95
pushMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected