MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / test_task_86

Function test_task_86

data/unit_test/tests.py:901–913  ·  view source on GitHub ↗
(trajectory)

Source from the content-addressed store, hash-verified

899
900
901def test_task_86(trajectory):
902 image_path = "./output/86.png"
903 ref_path = "./data/86.jpeg"
904
905 # 打开目标图像和参考图像
906 img1 = Image.open(image_path)
907 img2 = Image.open(ref_path)
908
909 # 将目标图像左右翻转
910 img1_flipped = img1.transpose(Image.FLIP_LEFT_RIGHT)
911
912 # 比较翻转后的图像与参考图像是否足够相似
913 assert are_two_images_same(img1_flipped, img2), "The flipped image is not similar enough to the reference image."
914
915
916def test_task_87(trajectory):

Callers

nothing calls this directly

Calls 1

are_two_images_sameFunction · 0.85

Tested by

no test coverage detected