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

Method testAbs

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

Source from the content-addressed store, hash-verified

18 expr=OMA(arith1.power,[2,3])
19 self.assertResult(expr,8)
20 def testAbs(self):
21 expr=OMA(arith1.abs,[-349])
22 self.assertResult(expr,349)
23 #def testSub(self):
24 # expr=OMA(arith1.minus,[2,3])
25 # self.assertResult(expr,-1)

Callers

nothing calls this directly

Calls 2

assertResultMethod · 0.95
OMAClass · 0.85

Tested by

no test coverage detected