@Test public void testEval() throws IOException { Engine engine = new Engine(false); assertTrue(engine.eval("version").contains("ans")); InputStream stream = getClass().getResourceAsStream("version.m"); assertNotNull(stream); assertTrue(engine.eval(stream).contains("ans")); assertEquals(null, engine.eval("version", false)); engine.close(); }
@Override public Object eval(final String expression) { return delegate.eval(expression); }