chore(cleanup): Remove temporary scripts after validation

This commit is contained in:
2026-05-05 20:40:46 -04:00
parent 904dabe6a1
commit 4658e8e1ce
3 changed files with 0 additions and 98 deletions
@@ -1,20 +0,0 @@
import os
def verify_files():
files = [
"base_component.h",
"component_registry.h",
"component_registry.cpp",
"complex_template.h"
]
base_path = "tests/assets/gencpp_samples"
for f in files:
p = os.path.join(base_path, f)
if os.path.exists(p):
print(f"Verified: {f}")
else:
print(f"Missing: {f}")
exit(1)
if __name__ == "__main__":
verify_files()
-31
View File
@@ -1,31 +0,0 @@
import sys
import os
sys.path.insert(0, os.getcwd())
from src.file_cache import ASTParser
def test_multibyte_definition_lookup():
# String with a multi-byte character (3 bytes)
# The shade character ▓ is 3 bytes in UTF-8.
# 3 shade characters = 9 bytes. In Python str they are 3 chars.
# Offset drift will be 6 bytes.
code = """
/* ▓▓▓ */
struct Target {
int x;
};
"""
parser = ASTParser("cpp")
# This should find Target and return its definition
definition = parser.get_definition(code, "Target")
print(f"Definition found: '{definition}'")
if "struct Target" not in definition:
print("FAILURE: 'struct Target' not in definition")
sys.exit(1)
if "int x;" not in definition:
print("FAILURE: 'int x;' not in definition")
sys.exit(1)
print("SUCCESS")
if __name__ == "__main__":
test_multibyte_definition_lookup()