Deeply Insturmented Code Mirror Demo - #1456
mcnuttandrew wants to merge 1 commit into
Conversation
|
A preview of is uploaded and can be seen here: ✨ https://revisit.dev/study/PR1456 ✨ Changes may take a few minutes to propagate. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 808dad8dd6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const results = testCases.map((testCase) => { | ||
| const label = testLabel(functionName, testCase); | ||
| try { | ||
| const actual = participantFunction(...testCase.args); |
There was a problem hiding this comment.
Clone test arguments before executing participant code
participantFunction(...testCase.args) passes nested Study Config values by reference. If a participant writes a solution that consumes or mutates nums—for example, by repeatedly calling pop()—the first run modifies the configured fixture, so pressing Run tests again executes against different inputs and can turn a passing solution into a failure. Deep-clone each case's JSON arguments before every invocation so repeated runs remain deterministic.
Useful? React with 👍 / 👎.
Basically just a quick demo of a deeply insturmented code mirror