MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_extract_json_array

Function test_extract_json_array

core/src/llm/structured_tests.rs:204–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202
203#[test]
204fn test_extract_json_array() {
205 let input = r#"[{"a": 1}, {"a": 2}]"#;
206 let result = extract_json_value(input).unwrap();
207 assert_eq!(result[0]["a"], 1);
208}
209
210#[test]
211fn test_extract_json_no_json() {

Callers

nothing calls this directly

Calls 1

extract_json_valueFunction · 0.85

Tested by

no test coverage detected