Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample test cases are not being fetched for Codechef problems #30

Open
ShridharGoel opened this issue May 2, 2020 · 4 comments
Open
Labels

Comments

@ShridharGoel
Copy link

Sample test cases are not being fetched for Codechef problems because of the which the Test View remains blank.

@unneon unneon added the feature label May 2, 2020
@unneon
Copy link
Owner

unneon commented May 2, 2020

Fetching CodeChef tests is not implemented yet, because they come in various formats depending on the contest, so it's hard to tell where they begin and end. If you're interested in working on this, feel free to ask me on our Discord.

@ShridharGoel
Copy link
Author

Fetching CodeChef tests is not implemented yet, because they come in various formats depending on the contest, so it's hard to tell where they begin and end.

Okay, I was wondering whether it's a bug or it isn't implemented yet. Just saw that it's mentioned in the Supported Sites table in the Readme.

If you're interested in working on this, feel free to ask me on our Discord.

Actually, I don't have any experience with Rust currently.

@Raju235
Copy link

Raju235 commented Jun 17, 2020

Fetching CodeChef tests is not implemented yet, because they come in various formats depending on the contest, so it's hard to tell where they begin and end.

But, this has been implemented in acmX and it works well. Can we try it the similar way?

@unneon
Copy link
Owner

unneon commented Jun 17, 2020

It's very much possible to implement. acmX uses competitive companion to do the parsing, which implements CodeChef test parsing here. It seems like it's just a lot of ifs, and it should be possible to add similar logic in ICIE's parser using the resp.body variable (it's in Markdown, so the parsing will be slightly different) there. So just write a bunch of ifs/text slicing/regexes, return that from the function, and then test it on a lot of tasks. Unfortunately, I really don't have any time or need to implement this myself. If want to do this, feel free to ask me on Discord for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants