MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / ParserTest

Method ParserTest

src/test/ParserTest.java:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 String fxStr="sin(x)";
11
12 ParserTest() {
13 try {
14 fxParser = new SuryonoParser("0", "x");
15 fxParser.setFunction (fxStr);
16 } catch (ParserException ex) {
17 System.err.println(ex.getMessage());
18 }
19
20 showValues(fxParser);
21 }
22
23 //void showValues(SuryonoParser fun){ // WC: this signature works
24 void showValues(Function fun){ // WC: this signature fails

Callers

nothing calls this directly

Calls 4

showValuesMethod · 0.95
getMessageMethod · 0.80
printlnMethod · 0.65
setFunctionMethod · 0.45

Tested by

no test coverage detected