'Test numpy scalars.'

def test_numpy_scalars(self):

    v = numpy.float64(2.0)
    self.assertExpression((self.x + v), (2, 1))
    self.assertExpression((v + self.x), (2, 1))
    self.assertExpression((v * self.x), (2, 1))
    self.assertExpression((self.x - v), (2, 1))
    self.assertExpression(((v - v) - self.x), (2, 1))
    self.assertExpression((self.x <= v), (2, 1))
    self.assertExpression((v <= self.x), (2, 1))
    self.assertExpression((self.x == v), (2, 1))
    self.assertExpression((v == self.x), (2, 1))
    self.assertExpression((v << self.A), (2, 2))
    self.assertExpression((v >> self.A), (2, 2))
