Beispiel #1
0
 def test_ConstantTimesConstant(self):
     ex = ConstantScalarExpr(3)*ConstantScalarExpr(2)
     assert(ex.data()==6)
Beispiel #2
0
 def test_ConstantPlusConstant(self):
     ex = ConstantScalarExpr(1)+ConstantScalarExpr(2)
     assert(ex.data()==3)
Beispiel #3
0
 def test_ConstantMinusConstant(self):
     ex = ConstantScalarExpr(1)-ConstantScalarExpr(2)
     assert(ex.data()==-1)
Beispiel #4
0
 def test_ConstantDivideConstant(self):
     ex = ConstantScalarExpr(3.0)/ConstantScalarExpr(2.0)
     assert(ex.data()==3.0/2.0)