numpy/numpy — pull request #3592 by arinkverma (2013-08-08 20:34:19+00:00)
Title: ENH: Added test cases to ensure the behavior of integer as it is.

There is a need to add test case which ensure and maintain the behavior of integer. As per pr #3567, which speed up integer scalar's operations by avoiding the conversion of integer to NumPy Scalar.

Test case
---------
For np.int16

a = np.array([2**15-1]], dtype=np.int16)
b = np.array([-2**15], dtype=np.int16)
assert_equal(a,b-1)

For np.uint16

a = np.array([2**16-1]], dtype=np.uint16)
b = np.array([0], dtype=np.uint16)
assert_equal(a+1,b)