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

Function test_task_87

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

Source from the content-addressed store, hash-verified

914
915
916def test_task_87(trajectory):
917 # Same to 86
918 image_path = "./output/87.png"
919 ref_path = "./data/87.jpeg"
920
921 # 打开目标图像和参考图像
922 img1 = Image.open(image_path)
923 img2 = Image.open(ref_path)
924
925 # 将目标图像左右翻转
926 img1_flipped = img1.transpose(Image.FLIP_LEFT_RIGHT)
927
928 # 比较翻转后的图像与参考图像是否足够相似
929 assert are_two_images_same(img1_flipped, img2), "The flipped image is not similar enough to the reference image."
930
931
932

Callers

nothing calls this directly

Calls 1

are_two_images_sameFunction · 0.85

Tested by

no test coverage detected