mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
feat: 添加多个 LSP 测试示例,包括能力测试、调用层次和原始 LSP 测试
This commit is contained in:
19
codex-lens/test_simple_function.py
Normal file
19
codex-lens/test_simple_function.py
Normal 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()
|
||||
Reference in New Issue
Block a user