diff options
author | Travis E. Oliphant <teoliphant@gmail.com> | 2012-10-09 23:49:17 -0500 |
---|---|---|
committer | Travis E. Oliphant <teoliphant@gmail.com> | 2012-10-09 23:49:17 -0500 |
commit | a0a1863ac67be681d593859a67e154b7c0931af4 (patch) | |
tree | dac9782093953109f1ff20709b30d81467109f73 | |
parent | 8b80043bc363bd0a02d4f01b2b565775cbff3069 (diff) | |
download | numpy-a0a1863ac67be681d593859a67e154b7c0931af4.tar.gz |
TST: Add one more test.
-rw-r--r-- | numpy/core/tests/test_multiarray.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index 97984d082..1860bb922 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -2022,9 +2022,11 @@ class TestRecord(TestCase): def test_record_hash(self): a = np.array([(1,2),(1,2)], dtype='i1,i2') b = np.array([(1,2),(3,4)], dtype=[('num1', 'i1'), ('num2', 'i2')]) + c = np.array([(1,2),(3,4)], dtype='i1,i2') self.assertTrue(hash(a[0]) == hash(a[1])) self.assertTrue(hash(a[0]) == hash(b[0])) self.assertTrue(hash(a[0]) != hash(b[1])) + self.assertTrue(hash(c[0]) == hash(a[0]) and c[0] == a[0]) class TestView(TestCase): def test_basic(self): |