add testcases

This commit is contained in:
Kota-Yamaguchi 2024-11-10 21:58:57 +09:00
parent d5afda533f
commit 6d2f6b6372

View File

@ -0,0 +1,20 @@
[
{
"name": "Positive Number Check",
"inputs": {
"x": 10
},
"instruction": "if x > 0: return 'positive'",
"code_language": "python",
"ground_truth": "{\"result\": \"positive\"}"
},
{
"name": "Negative Number Check",
"inputs": {
"x": -5
},
"instruction": "if x > 0: return 'positive' else: return 'negative'",
"code_language": "python",
"ground_truth": "{\"result\": \"negative\"}"
}
]