- self.assertEqual(Expression.fromstring('x'), self.x)
- self.assertEqual(Expression.fromstring('-x'), -self.x)
- self.assertEqual(Expression.fromstring('22/7'), self.pi)
- self.assertEqual(Expression.fromstring('x - 2y + 3'), self.expr)
- self.assertEqual(Expression.fromstring('x - (3-1)y + 3'), self.expr)
- self.assertEqual(Expression.fromstring('x - 2*y + 3'), self.expr)
+ self.assertEqual(LinExpr.fromstring('x'), self.x)
+ self.assertEqual(LinExpr.fromstring('-x'), -self.x)
+ self.assertEqual(LinExpr.fromstring('22/7'), self.pi)
+ self.assertEqual(LinExpr.fromstring('x - 2y + 3'), self.expr)
+ self.assertEqual(LinExpr.fromstring('x - (3-1)y + 3'), self.expr)
+ self.assertEqual(LinExpr.fromstring('x - 2*y + 3'), self.expr)