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

Function test_partial_json_unclosed_array

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

Source from the content-addressed store, hash-verified

241
242#[test]
243fn test_partial_json_unclosed_array() {
244 let input = r#"{"items": [1, 2, 3"#;
245 let result = try_parse_partial_json(input).unwrap();
246 assert_eq!(result["items"][0], 1);
247 assert_eq!(result["items"][2], 3);
248}
249
250#[test]
251fn test_partial_json_unclosed_string() {

Callers

nothing calls this directly

Calls 1

try_parse_partial_jsonFunction · 0.85

Tested by

no test coverage detected