@@ -115,7 +115,7 @@ namespace xt
115115 TEST (xmath, uchar_result_type)
116116 {
117117 shape_type shape = {3 , 2 };
118- xarray <unsigned char > auchar (shape);
118+ auto auchar = xt::zeros <unsigned char >(shape);
119119
120120 CHECK_RESULT_TYPE (auchar + auchar, int );
121121 CHECK_RESULT_TYPE (2 * auchar, int );
@@ -131,7 +131,7 @@ namespace xt
131131 TEST (xmath, short_result_type)
132132 {
133133 shape_type shape = {3 , 2 };
134- xarray <short > ashort (shape);
134+ auto ashort = xt::zeros <short >(shape);
135135
136136 CHECK_RESULT_TYPE (ashort + ashort, int );
137137 CHECK_RESULT_TYPE (2 * ashort, int );
@@ -147,7 +147,7 @@ namespace xt
147147 TEST (xmath, ushort_result_type)
148148 {
149149 shape_type shape = {3 , 2 };
150- xarray <unsigned short > aushort (shape);
150+ auto aushort = xt::zeros <unsigned short >(shape);
151151
152152 CHECK_RESULT_TYPE (aushort + aushort, int );
153153 CHECK_RESULT_TYPE (2u * aushort, unsigned int );
@@ -163,7 +163,7 @@ namespace xt
163163 TEST (xmath, int_result_type)
164164 {
165165 shape_type shape = {3 , 2 };
166- xarray <int > aint (shape);
166+ auto aint = xt::zeros <int >(shape);
167167
168168 CHECK_RESULT_TYPE (aint + aint, int );
169169 CHECK_RESULT_TYPE (2 * aint, int );
@@ -179,7 +179,7 @@ namespace xt
179179 TEST (xmath, uint_result_type)
180180 {
181181 shape_type shape = {3 , 2 };
182- xarray <unsigned int > auint (shape);
182+ auto auint = xt::zeros <unsigned int >(shape);
183183
184184 CHECK_RESULT_TYPE (auint + auint, unsigned int );
185185 CHECK_RESULT_TYPE (2u * auint, unsigned int );
@@ -195,7 +195,7 @@ namespace xt
195195 TEST (xmath, long_result_type)
196196 {
197197 shape_type shape = {3 , 2 };
198- xarray <long long > along (shape);
198+ auto along = xt::zeros <long long >(shape);
199199
200200 CHECK_RESULT_TYPE (along + along, signed long long );
201201 CHECK_RESULT_TYPE (2 * along, signed long long );
@@ -211,7 +211,7 @@ namespace xt
211211 TEST (xmath, ulong_result_type)
212212 {
213213 shape_type shape = {3 , 2 };
214- xarray <unsigned long long > aulong (shape);
214+ auto aulong = xt::zeros <unsigned long long >(shape);
215215
216216 CHECK_RESULT_TYPE (aulong + aulong, unsigned long long );
217217 CHECK_RESULT_TYPE (2ul * aulong, unsigned long long );
@@ -227,7 +227,7 @@ namespace xt
227227 TEST (xmath, float_result_type)
228228 {
229229 shape_type shape = {3 , 2 };
230- xarray <float > afloat (shape);
230+ auto afloat = xt::zeros <float >(shape);
231231
232232 CHECK_RESULT_TYPE (afloat + afloat, float );
233233 CHECK_RESULT_TYPE (2 .0f * afloat, float );
@@ -243,7 +243,7 @@ namespace xt
243243 TEST (xmath, double_result_type)
244244 {
245245 shape_type shape = {3 , 2 };
246- xarray <double > adouble (shape);
246+ auto adouble = xt::zeros <double >(shape);
247247
248248 CHECK_RESULT_TYPE (adouble + adouble, double );
249249 CHECK_RESULT_TYPE (2.0 * adouble, double );
0 commit comments