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

add the option to test subcommand to split an input file into sub-cases #693

Open
kmyk opened this issue Feb 28, 2020 · 3 comments
Open

Comments

@kmyk
Copy link
Member

kmyk commented Feb 28, 2020

The feature to recognize a single-file with multiple-cases format (e.g. Google Code Jam) is required.
It was in the split-input subcommand (removed?, see #692 #664 ) but this should be done as an option of test subcommand.

expected:

$ oj t --multi-cases
[*] 1 cases found

[*] sample-1
[x] time: 0.010691 sec
[-] WA (3 AC / 5 sub-cases)
output (case 2):
Case #2: 10

expected (case 2):
Case #2: 14

output (case 5):
Case #5: 10

expected (case 2):
Case #5: 21

[x] slowest: 0.010691 sec  (for sample-1)
[-] test failed: 0 AC / 1 cases

#687 感もあるけど、 oj コマンドの中の test サブコマンドで完結する表示の改善なので oj の責任範囲でしょう

@fukatani
Copy link
Contributor

ちなみに、downloadのときに分割することはできないのでしょうか?
GCJわかってないのですが、

@kmyk
Copy link
Member Author

kmyk commented Feb 29, 2020

download のときの分割は、問題文の自然言語解析とかしない限りは無理です。


複数テストケースの問題の例を置いておきますね:

@kmyk
Copy link
Member Author

kmyk commented Feb 22, 2021

we should do this in oj-template?

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

No branches or pull requests

3 participants