(self)
| 106 | assert_equal(test, control) |
| 107 | |
| 108 | def test_get_names(self): |
| 109 | # Test get_names |
| 110 | ndtype = np.dtype([('A', '|S3'), ('B', float)]) |
| 111 | test = get_names(ndtype) |
| 112 | assert_equal(test, ('A', 'B')) |
| 113 | |
| 114 | ndtype = np.dtype([('a', int), ('b', [('ba', float), ('bb', int)])]) |
| 115 | test = get_names(ndtype) |
| 116 | assert_equal(test, ('a', ('b', ('ba', 'bb')))) |
| 117 | |
| 118 | ndtype = np.dtype([('a', int), ('b', [])]) |
| 119 | test = get_names(ndtype) |
| 120 | assert_equal(test, ('a', ('b', ()))) |
| 121 | |
| 122 | ndtype = np.dtype([]) |
| 123 | test = get_names(ndtype) |
| 124 | assert_equal(test, ()) |
| 125 | |
| 126 | def test_get_names_flat(self): |
| 127 | # Test get_names_flat |
nothing calls this directly
no test coverage detected