File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,13 @@ func TestExplainWithOptions(t *testing.T) {
30
30
31
31
explainResponseJSON := explainResponse {
32
32
Status : completeStatus ,
33
- Explanation : map [string ]string {"explanation1" : "This is the first explanation" },
33
+ Explanation : map [string ]string {
34
+ "explanation1" : "This is the first explanation" ,
35
+ "explanation2" : "this is the second explanation" ,
36
+ "explanation3" : "this is the third explanation" ,
37
+ "explanation4" : "this is the fourth explanation" ,
38
+ "explanation5" : "this is the fifth explanation" ,
39
+ },
34
40
}
35
41
36
42
expectedResponseBody , err := json .Marshal (explainResponseJSON )
@@ -49,7 +55,7 @@ func TestExplainWithOptions(t *testing.T) {
49
55
err = json .Unmarshal (expectedResponseBody , & exptectedExplanationsResponse )
50
56
assert .NoError (t , err )
51
57
expectedResExplanations := exptectedExplanationsResponse .Explanation
52
- assert .Equal (t , expectedResExplanations ["explanation1" ], explanation [testDiff ])
58
+ assert .Equal (t , expectedResExplanations ["explanation1" ], explanation [0 ])
53
59
})
54
60
55
61
t .Run ("runExplain error" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments