mirror of
https://github.com/DanilaFe/abacus
synced 2026-09-21 10:52:33 +00:00
Switch Abacus to returning an EvaluationResult with the context.
This commit is contained in:
@@ -24,7 +24,7 @@ public class CalculationTests {
|
||||
TreeNode parsedTree = abacus.parseString(input);
|
||||
Assert.assertNotNull(parsedTree);
|
||||
Assert.assertEquals(parsedTree.toString(), parseOutput);
|
||||
NumberInterface result = abacus.evaluateTree(parsedTree);
|
||||
NumberInterface result = abacus.evaluateTree(parsedTree).getValue();
|
||||
Assert.assertNotNull(result);
|
||||
Assert.assertTrue(result.toString().startsWith(output));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user