Пример #1
0
 @Test
 public void testRetrieveSingleAnswer() {
   assertEquals(
       "10", MaximaProcess.retrieveSingleLineAnswer("(%o1)                                 10"));
   assertEquals(
       "143", MaximaProcess.retrieveSingleLineAnswer("(%o3)                                 143"));
 }
Пример #2
0
 @Test
 public void test() throws IOException {
   assertEquals("10", mp.call("5+5;"));
   assertEquals("5", mp.call("varx : 5;"));
   assertEquals("15", mp.call("varx + 10;"));
   assertEquals("1432", mp.call("1430 + 1 +1;"));
 }
Пример #3
0
 @After
 public void tearDown() {
   mp.kill();
 }