MCPcopy Create free account
hub / github.com/Singular/Singular / assertResult

Method assertResult

Singular/dyn_modules/openmath/tests/basic1.py:8–9  ·  view source on GitHub ↗
(self,expression, result)

Source from the content-addressed store, hash-verified

6
7class OMTestCase1(unittest.TestCase):
8 def assertResult(self,expression, result):
9 self.assertEqual(context.evaluate(expression),result)
10 def testAddition(self):
11 expr=OMA(arith1.plus,[2,3])
12 self.assertEqual(len(expr.args),2)

Callers 4

testAdditionMethod · 0.95
testMultiplicationMethod · 0.95
testPowerMethod · 0.95
testAbsMethod · 0.95

Calls 1

evaluateMethod · 0.45

Tested by

no test coverage detected