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

Method testIf04

code/src/test/plugin/jepcommands/IfCommandTest.java:101–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100 /* Test the case where the condition is a true boolean */
101 @Test
102 public void testIf04()
103 {
104 final PostfixMathCommandI c = new IfCommand();
105 final Stack<Boolean> s = new Stack<>();
106
107 s.push(true);
108 s.push(false);
109 s.push(true);
110
111 runIf(s, c);
112
113 final Boolean result = s.pop();
114
115 assertThat("if (true,false,true) returns true", result, is(false));
116 }
117}

Callers

nothing calls this directly

Calls 3

runIfMethod · 0.95
pushMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected