mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
add testcases
This commit is contained in:
parent
d5afda533f
commit
6d2f6b6372
20
evaluate/code-generator/testdata/testcases.json
vendored
Normal file
20
evaluate/code-generator/testdata/testcases.json
vendored
Normal 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\"}"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user