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

Function test_extract_json_deeply_nested

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

Source from the content-addressed store, hash-verified

689
690#[test]
691fn test_extract_json_deeply_nested() {
692 let input = r#"{"a":{"b":{"c":{"d":{"e":"deep"}}}}}"#;
693 let result = extract_json_value(input).unwrap();
694 assert_eq!(result["a"]["b"]["c"]["d"]["e"], "deep");
695}
696
697#[test]
698fn test_extract_json_empty_object() {

Callers

nothing calls this directly

Calls 1

extract_json_valueFunction · 0.85

Tested by

no test coverage detected