@@ -241,24 +241,24 @@ public void Power_HalfExponent_MatchesSqrt()
241241 }
242242
243243 [ Test ]
244- public async Task Power_NegativeHalfExponent ( )
244+ public void Power_NegativeHalfExponent ( )
245245 {
246246 // NumPy: power([1,4,9], -0.5) = [1, 0.5, 0.33333...]
247247 var a = np . array ( new double [ ] { 1.0 , 4.0 , 9.0 } ) ;
248248 var result = np . power ( a , - 0.5 ) ;
249249 var data = result . GetData < double > ( ) ;
250250
251- await Assert . That ( Math . Abs ( data [ 0 ] - 1.0 ) ) . IsLessThan ( 1e-10 ) ;
252- await Assert . That ( Math . Abs ( data [ 1 ] - 0.5 ) ) . IsLessThan ( 1e-10 ) ;
253- await Assert . That ( Math . Abs ( data [ 2 ] - ( 1.0 / 3.0 ) ) ) . IsLessThan ( 1e-10 ) ;
251+ Assert . IsTrue ( Math . Abs ( data [ 0 ] - 1.0 ) < 1e-10 ) ;
252+ Assert . IsTrue ( Math . Abs ( data [ 1 ] - 0.5 ) < 1e-10 ) ;
253+ Assert . IsTrue ( Math . Abs ( data [ 2 ] - ( 1.0 / 3.0 ) ) < 1e-10 ) ;
254254 }
255255
256256 #endregion
257257
258258 #region Broadcasting Tests
259259
260260 [ Test ]
261- public async Task Power_Broadcasting_2DArray_1DExponent ( )
261+ public void Power_Broadcasting_2DArray_1DExponent ( )
262262 {
263263 // NumPy: power([[1,2],[3,4]], [2,3]) = [[1,8],[9,64]]
264264 var a = np . array ( new int [ , ] { { 1 , 2 } , { 3 , 4 } } ) ;
@@ -270,7 +270,7 @@ public async Task Power_Broadcasting_2DArray_1DExponent()
270270 }
271271
272272 [ Test ]
273- public async Task Power_Broadcasting_1DArray_2DExponent ( )
273+ public void Power_Broadcasting_1DArray_2DExponent ( )
274274 {
275275 // NumPy: power([1,2,3,4], [[1],[2],[3]]).shape = (3,4)
276276 var a = np . array ( new int [ ] { 1 , 2 , 3 , 4 } ) ;
@@ -285,7 +285,7 @@ public async Task Power_Broadcasting_1DArray_2DExponent()
285285 #region Strided Array Tests
286286
287287 [ Test ]
288- public async Task Power_StridedArray ( )
288+ public void Power_StridedArray ( )
289289 {
290290 // NumPy: power(a[::2], 2) where a = [0,1,2,3,4,5,6,7,8,9]
291291 // a[::2] = [0,2,4,6,8], power = [0,4,16,36,64]
@@ -301,27 +301,27 @@ public async Task Power_StridedArray()
301301 #region Dtype Preservation Tests
302302
303303 [ Test ]
304- public async Task Power_Int32_Int32_ReturnsInt32 ( )
304+ public void Power_Int32_Int32_ReturnsInt32 ( )
305305 {
306306 var a = np . array ( new int [ ] { 2 , 3 , 4 } ) ;
307307 var result = np . power ( a , 2 ) ;
308- await Assert . That ( result . dtype ) . IsEqualTo ( np . int32 ) ;
308+ Assert . AreEqual ( np . int32 , result . dtype ) ;
309309 }
310310
311311 [ Test ]
312- public async Task Power_Int64_Int64_ReturnsInt64 ( )
312+ public void Power_Int64_Int64_ReturnsInt64 ( )
313313 {
314314 var a = np . array ( new long [ ] { 2 , 3 , 4 } ) ;
315315 var result = np . power ( a , 2L ) ;
316- await Assert . That ( result . dtype ) . IsEqualTo ( np . int64 ) ;
316+ Assert . AreEqual ( np . int64 , result . dtype ) ;
317317 }
318318
319319 [ Test ]
320- public async Task Power_Float32_Float32_ReturnsFloat32 ( )
320+ public void Power_Float32_Float32_ReturnsFloat32 ( )
321321 {
322322 var a = np . array ( new float [ ] { 2f , 3f , 4f } ) ;
323323 var result = np . power ( a , 2f ) ;
324- await Assert . That ( result . dtype ) . IsEqualTo ( np . float32 ) ;
324+ Assert . AreEqual ( np . float32 , result . dtype ) ;
325325 }
326326
327327 [ Test ]
0 commit comments