MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_fenced_json

Method test_fenced_json

tests/unit/test_llm_utils.py:306–307  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

304 assert _extract_json_object('{"a": 1}') == {"a": 1}
305
306 def test_fenced_json(self) -> None:
307 assert _extract_json_object('```json\n{"a": 1}\n```') == {"a": 1}
308
309 def test_prose_wrapped_json(self) -> None:
310 assert _extract_json_object('Here you go:\n{"a": 1}\nDone.') == {"a": 1}

Callers

nothing calls this directly

Calls 1

_extract_json_objectFunction · 0.90

Tested by

no test coverage detected