@@ -68,23 +68,23 @@ def __create_n_images(n: int = 100) -> list[cdl.obj.ImageObj]:
6868
6969
7070@pytest .mark .validation
71- def test_image_sum () -> None :
72- """Image sum test."""
73- execenv .print ("*** Testing image sum :" )
71+ def test_image_addition () -> None :
72+ """Image addition test."""
73+ execenv .print ("*** Testing image addition :" )
7474 for ima1 , ima2 in __iterate_image_couples ():
7575 dtype1 , dtype2 = ima1 .data .dtype , ima2 .data .dtype
7676 execenv .print (f" { dtype1 } += { dtype2 } : " , end = "" )
7777 exp = ima1 .data .astype (float ) + ima2 .data .astype (float )
7878 ima3 = cpi .addition ([ima1 , ima2 ])
79- check_array_result ("Image sum " , ima3 .data , exp )
79+ check_array_result ("Image addition " , ima3 .data , exp )
8080 imalist = __create_n_images ()
8181 n = len (imalist )
8282 ima3 = cpi .addition (imalist )
8383 res = ima3 .data
8484 exp = np .zeros_like (ima3 .data )
8585 for ima in imalist :
8686 exp += ima .data
87- check_array_result (f" Sum of { n } images" , res , exp )
87+ check_array_result (f" Addition of { n } images" , res , exp )
8888
8989
9090@pytest .mark .validation
@@ -289,36 +289,36 @@ def test_image_inverse() -> None:
289289
290290
291291@pytest .mark .validation
292- def test_image_abs () -> None :
292+ def test_image_absolute () -> None :
293293 """Image absolute value test."""
294294 execenv .print ("*** Testing image absolute value:" )
295295 for ima1 in __iterate_images ():
296296 execenv .print (f" abs({ ima1 .data .dtype } ): " , end = "" )
297297 exp = np .abs (ima1 .data )
298298 ima2 = cpi .absolute (ima1 )
299- check_array_result ("Image abs " , ima2 .data , exp )
299+ check_array_result ("Absolute value " , ima2 .data , exp )
300300
301301
302302@pytest .mark .validation
303- def test_image_re () -> None :
303+ def test_image_real () -> None :
304304 """Image real part test."""
305305 execenv .print ("*** Testing image real part:" )
306306 for ima1 in __iterate_images ():
307307 execenv .print (f" re({ ima1 .data .dtype } ): " , end = "" )
308308 exp = np .real (ima1 .data )
309309 ima2 = cpi .real (ima1 )
310- check_array_result ("Image re " , ima2 .data , exp )
310+ check_array_result ("Real part " , ima2 .data , exp )
311311
312312
313313@pytest .mark .validation
314- def test_image_im () -> None :
314+ def test_image_imag () -> None :
315315 """Image imaginary part test."""
316316 execenv .print ("*** Testing image imaginary part:" )
317317 for ima1 in __iterate_images ():
318318 execenv .print (f" im({ ima1 .data .dtype } ): " , end = "" )
319319 exp = np .imag (ima1 .data )
320320 ima2 = cpi .imag (ima1 )
321- check_array_result ("Image im " , ima2 .data , exp )
321+ check_array_result ("Imaginary part " , ima2 .data , exp )
322322
323323
324324def __get_numpy_info (dtype : np .dtype ) -> np .generic :
@@ -449,7 +449,7 @@ def test_image_rotate() -> None:
449449
450450
451451if __name__ == "__main__" :
452- test_image_sum ()
452+ test_image_addition ()
453453 test_image_average ()
454454 test_image_product ()
455455 test_image_division ()
@@ -461,9 +461,9 @@ def test_image_rotate() -> None:
461461 test_image_division_constant ()
462462 test_image_arithmetic ()
463463 test_image_inverse ()
464- test_image_abs ()
465- test_image_re ()
466- test_image_im ()
464+ test_image_absolute ()
465+ test_image_real ()
466+ test_image_imag ()
467467 test_image_astype ()
468468 test_image_exp ()
469469 test_image_log10 ()
0 commit comments