(trajectory)
| 899 | |
| 900 | |
| 901 | def 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 | |
| 916 | def test_task_87(trajectory): |
nothing calls this directly
no test coverage detected