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

Method testAddition

Singular/dyn_modules/openmath/tests/basic1.py:10–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)
13 self.assertResult(expr,5)
14 def testMultiplication(self):
15 expr=OMA(arith1.times,[4,3])
16 self.assertResult(expr,12)

Callers

nothing calls this directly

Calls 2

assertResultMethod · 0.95
OMAClass · 0.85

Tested by

no test coverage detected