docs: Ralph Loop 검증 테스트 추가 및 리서치 문서 연결
Made-with: Cursor
This commit is contained in:
parent
04f1a567f3
commit
ec60f80751
@ -70,9 +70,12 @@ tags: [research, ralph-loop, ai-coding, rag, grok, 참조]
|
||||
|
||||
## Unresolved
|
||||
|
||||
- Codex 5.4 구독 환경에서 Ralph Loop 도구(Continue/Cursor/Aider) 연동 검증
|
||||
- 200GB 전체 인덱싱 시 비용·시간 추정
|
||||
|
||||
## 검증
|
||||
|
||||
- [ralph_loop_test/](./ralph_loop_test/) — fib(100) 테스트로 실패→수정→통과 루프 검증 완료 (2026-03-16)
|
||||
|
||||
## 관련 문서
|
||||
|
||||
- [스킬 계약 문서 기반 컨텍스트 오케스트레이션 리서치](./260314_스킬_계약_문서_기반_컨텍스트_오케스트레이션_리서치.md)
|
||||
|
||||
BIN
journey/research/ralph_loop_test/__pycache__/fib.cpython-312.pyc
Normal file
BIN
journey/research/ralph_loop_test/__pycache__/fib.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
14
journey/research/ralph_loop_test/fib.py
Normal file
14
journey/research/ralph_loop_test/fib.py
Normal file
@ -0,0 +1,14 @@
|
||||
"""랄프 루프 검증용. fib(n) 반환."""
|
||||
|
||||
|
||||
def fib(n: int) -> int:
|
||||
if n <= 1:
|
||||
return n
|
||||
a, b = 0, 1
|
||||
for _ in range(2, n + 1):
|
||||
a, b = b, a + b
|
||||
return b
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(fib(100))
|
||||
8
journey/research/ralph_loop_test/test_fib.py
Normal file
8
journey/research/ralph_loop_test/test_fib.py
Normal file
@ -0,0 +1,8 @@
|
||||
"""fib(100) 검증. 354224848179261915075이어야 함."""
|
||||
|
||||
import pytest
|
||||
from fib import fib
|
||||
|
||||
|
||||
def test_fib_100():
|
||||
assert fib(100) == 354224848179261915075
|
||||
Loading…
x
Reference in New Issue
Block a user