We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c85f0e commit 4160fbbCopy full SHA for 4160fbb
1 file changed
tests/stress_mcp.rs
@@ -116,7 +116,7 @@ fn test_mcp_codebase_ground_verified() {
116
let text = tool_text(&resp);
117
let parsed: Value = serde_json::from_str(&text).unwrap();
118
assert_eq!(parsed["status"], "verified");
119
- assert!(parsed["evidence"].as_array().unwrap().len() > 0);
+ assert!(!parsed["evidence"].as_array().unwrap().is_empty());
120
}
121
122
#[test]
@@ -376,7 +376,7 @@ fn test_mcp_workspace_query() {
376
377
let results = parsed.as_array().unwrap();
378
assert!(!results.is_empty());
379
- assert!(results[0]["matches"].as_array().unwrap().len() > 0);
+ assert!(!results[0]["matches"].as_array().unwrap().is_empty());
380
381
382
0 commit comments