feat: 添加多个 LSP 测试示例,包括能力测试、调用层次和原始 LSP 测试

This commit is contained in:
catlog22
2026-01-21 10:43:53 +08:00
parent 200812d204
commit f7dd3d23ff
9 changed files with 690 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
"""Simple test file with clear function definitions."""
def hello_world():
"""A simple function."""
return "Hello, World!"
def greet(name: str) -> str:
"""Greet someone by name."""
return f"Hello, {name}!"
def main():
"""Main function that calls other functions."""
msg = hello_world()
greeting = greet("Alice")
print(msg)
print(greeting)
if __name__ == "__main__":
main()