KHUCapston-concoder / KHUCapston-concoder/Frontend
[LiveCode] 컴파일-테스트케이스 로직 재구성 필요
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
뭔가 안에서 로직이 꼬였는지, 각 테스트케이스에 대한 컴파일 결과가 제대로 매칭되지않음
컴파일시 각 테스트케이스에 대한 컴파일 정보가 아래와 같은 형식으로 내려오는데, 적절히 변환해서 테스트케이스의 기대 output과 실제 output이 맞으면 성공, 다르면 실패로 데이터를 전처리해서 보여줄 필요가 있음.
{
"testCaseId": "cd89da31-2fea-4bce-b9e3-a5036bb2be78",
"output": "output", // 테스트케이스의 실행 결과
"time": 23 // ms 단위
}
이때, 아직 등록되지 않은(편집중인) 테스트케이스나 이미 삭제한 테스트케이스 등 다양한 경우의 수를 고려해주어야함.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/hooks/Components/useCompile.ts, especially lines 14-83, and inspect how the compiler response is matched to the current test cases. Use the response's testCaseId, output, and time fields to compare expected and actual output, including editing and deleted test cases. Done means each applicable test case is shown as successful or failed with correctly matched results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100