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

Method testIf

code/src/test/pcgen/util/PJepTest.java:115–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 @Test
116 public void testIf()
117 {
118 final PJEP jep = new PJEP();
119
120 jep.parseExpression("if (5>8, 7, 9)");
121 final double value = jep.getValue();
122
123 assertEquals(9.0, value, 0.001, "if");
124 }
125
126 @Test
127 public void testIf2()

Callers

nothing calls this directly

Calls 2

parseExpressionMethod · 0.95
getValueMethod · 0.65

Tested by

no test coverage detected