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

Function test_task_100

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

Source from the content-addressed store, hash-verified

1149 return image.mode == 'L'
1150
1151def test_task_100(trajectory):
1152 image_path = "./output/100.png"
1153 ref_path = "./data/100.jpeg"
1154
1155 # 检查目标图像是否是灰度图
1156 is_image_grayscale = is_grayscale(image_path)
1157
1158 # 断言目标图像是灰度图
1159 assert is_image_grayscale, "The image is not a grayscale image."
1160
1161
1162def test_task_101(trajectory):

Callers

nothing calls this directly

Calls 1

is_grayscaleFunction · 0.85

Tested by

no test coverage detected