add JSON test case import functionality for CPH extension#605
Open
SakuraiQManaka wants to merge 4 commits into
Open
add JSON test case import functionality for CPH extension#605SakuraiQManaka wants to merge 4 commits into
SakuraiQManaka wants to merge 4 commits into
Conversation
Owner
|
Can you share a screenshot of the UI? Thanks |
Author
|
Sorry for long time no reply, I will recode a video tomorrow, wish not too late. |
Author
cph.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: add JSON test case import functionality for CPH extension
Description
This PR adds a new feature to import test cases from JSON files in the CPH (Competitive Programming Helper) extension for VS Code. The implementation follows a specific JSON format that supports multiple test cases with multi-line input/output.
JSON Format Specification
The JSON file must be an array of test case objects, where each object contains:
"in": Array of strings representing input lines"out": Array of strings representing expected output linesExample Format
[ { "in": ["4", "a 64 46", "275 125", "c 11 99", "b 46 64"], "out": ["64+46=110", "9", "275+125=400", "11", "11*99=1089", "10", "46-64=-18", "9"] }, { "in": ["2", "1 2", "3 4"], "out": ["3", "7"] } ]