@@ -1121,11 +1121,20 @@ def test_write_scaling(self):
11211121
11221122 def test_dynamic_dtype_aliases (self ):
11231123 for in_dt , mn , mx , alias , effective_dt in [
1124- (np .int64 , 0 , 255 , 'compat' , np .uint8 ),
1125- (np .int64 , 0 , 256 , 'compat' , np .int16 ),
1126- (np .int64 , - 1 , 255 , 'compat' , np .int16 ),
1127- (np .int64 , 0 , 32768 , 'compat' , np .int32 ),
1128- (np .int64 , 0 , 4294967296 , 'compat' , None ),
1124+ (np .uint8 , 0 , 255 , 'compat' , np .uint8 ),
1125+ (np .int8 , 0 , 127 , 'compat' , np .uint8 ),
1126+ (np .int8 , - 128 , 127 , 'compat' , np .int16 ),
1127+ (np .int16 , - 32768 , 32767 , 'compat' , np .int16 ),
1128+ (np .uint16 , 0 , 32767 , 'compat' , np .int16 ),
1129+ (np .uint16 , 0 , 65535 , 'compat' , np .int32 ),
1130+ (np .int32 , - 2 ** 31 , 2 ** 31 - 1 , 'compat' , np .int32 ),
1131+ (np .uint32 , 0 , 2 ** 31 - 1 , 'compat' , np .int32 ),
1132+ (np .uint32 , 0 , 2 ** 32 - 1 , 'compat' , None ),
1133+ (np .int64 , - 2 ** 31 , 2 ** 31 - 1 , 'compat' , np .int32 ),
1134+ (np .uint64 , 0 , 2 ** 31 - 1 , 'compat' , np .int32 ),
1135+ (np .int64 , 0 , 2 ** 32 - 1 , 'compat' , None ),
1136+ (np .uint64 , 0 , 2 ** 32 - 1 , 'compat' , None ),
1137+ (np .float32 , 0 , 1e30 , 'compat' , np .float32 ),
11291138 (np .float64 , 0 , 1e30 , 'compat' , np .float32 ),
11301139 (np .float64 , 0 , 1e40 , 'compat' , None ),
11311140 (np .int64 , 0 , 255 , 'smallest' , np .uint8 ),
0 commit comments