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

Function test

Singular/dyn_modules/openmath/tester.py:24–26  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

22import cd.arith1 as arith1
23context.addCDImplementation(arith1.implementation)
24def test(expr):
25 print "Original: ", expr
26 print "Evaluated: ", context.evaluate(expr)
27test(OMA(arith1.implementation.plus, [1,2]))
28test(OMA(arith1.implementation.unary_minus, [10]))
29test(OMA(arith1.implementation.times, [3,4]))

Callers 1

tester.pyFile · 0.85

Calls 1

evaluateMethod · 0.45

Tested by

no test coverage detected