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

Function test_extract_json_nested_braces

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

Source from the content-addressed store, hash-verified

188
189#[test]
190fn test_extract_json_nested_braces() {
191 let input = r#"Result: {"outer": {"inner": [1, 2, 3]}} end"#;
192 let result = extract_json_value(input).unwrap();
193 assert_eq!(result["outer"]["inner"][1], 2);
194}
195
196#[test]
197fn test_extract_json_with_escaped_quotes() {

Callers

nothing calls this directly

Calls 1

extract_json_valueFunction · 0.85

Tested by

no test coverage detected