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

Function test_task_7

data/unit_test/tests.py:194–212  ·  view source on GitHub ↗

: \n Africa: 48 - Latin America: 38 - Asiatic Region: 32 - Western Europe: 26 - Eastern Europe: 23 - Middle East: 15 - Pacific Region: 10 - Northern America: 2 - Africa/Middle East (combined region): 1 Test whether each answer

(trajectory)

Source from the content-addressed store, hash-verified

192 assert outliers == 0
193
194def test_task_7(trajectory):
195 '''
196 <Region>:<count>\n
197 Africa: 48
198- Latin America: 38
199- Asiatic Region: 32
200- Western Europe: 26
201- Eastern Europe: 23
202- Middle East: 15
203- Pacific Region: 10
204- Northern America: 2
205- Africa/Middle East (combined region): 1
206Test whether each answer
207 ''&#x27;
208 final_answer=trajectory[-1]['content']
209 answer_list=["48","38","32","26","23","15","10","2","1"]
210 for ans in answer_list:
211 if ans not in final_answer:
212 raise ValueError
213
214
215def test_task_8(trajectory):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected