(trajectory)
| 914 | |
| 915 | |
| 916 | def 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 |
nothing calls this directly
no test coverage detected