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

Function test_extract_json_with_whitespace

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

Source from the content-addressed store, hash-verified

160
161#[test]
162fn test_extract_json_with_whitespace() {
163 let input = " \n {\"x\": 1} \n ";
164 let result = extract_json_value(input).unwrap();
165 assert_eq!(result["x"], 1);
166}
167
168#[test]
169fn test_extract_json_from_code_fence() {

Callers

nothing calls this directly

Calls 1

extract_json_valueFunction · 0.85

Tested by

no test coverage detected