feat(parser): Add C and C++ support to ASTParser
This commit is contained in:
@@ -42,6 +42,16 @@ def test_ast_parser_invalid_language() -> None:
|
||||
# If it's intended to raise or handle gracefully, test it here.
|
||||
pass
|
||||
|
||||
def test_ast_parser_cpp_init() -> None:
|
||||
"""Verify that ASTParser can be initialized with 'cpp'."""
|
||||
parser = ASTParser(language="cpp")
|
||||
assert parser.language_name == "cpp"
|
||||
|
||||
def test_ast_parser_c_init() -> None:
|
||||
"""Verify that ASTParser can be initialized with 'c'."""
|
||||
parser = ASTParser(language="c")
|
||||
assert parser.language_name == "c"
|
||||
|
||||
def test_ast_parser_get_curated_view() -> None:
|
||||
"""Verify that get_curated_view preserves function bodies with @core_logic or # [HOT]."""
|
||||
parser = ASTParser(language="python")
|
||||
|
||||
Reference in New Issue
Block a user