Пример #1
0
 @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();
 }
Пример #2
0
 @Override
 public Object eval(final String expression) {
   return delegate.eval(expression);
 }