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.
resolves #899
追加内容
撃墜ケースを見つける前提であれば、見つけたケースを後から利用できる形式のテストがあるのが好ましいと思いました。
現状の
t/rでは、ジャッジコマンドが都度ケースを生成する前提になっており、これに適していなさそうです。それを踏まえ、以下のオプション・サブコマンドを追加しました:
t/rft/r -i:テストケースを読んで処理を行うジャッジ用のテスト$ for f in test/* ; [[ -e a.pipe ]] && rm a.pipe ; mkfifo a.pipe && ./a.out < a.pipe | ./judge $f > a.pipe ; doneに相当$fには、提出プログラムに見せないジャッジ用のデータが入るのを想定(ジャッジが任意に利用)g/iなどで生成可能g/r:リアクティブ用の生成コマンドt/rで使うのと同じ)を仮定例
懸念
t/rfのエイリアスは微妙な感じがするt/rのオプションに-i, --from-fileのようなのを足した方がよかったか-iを使うとデフォルトではtest/のファイルを使用、-d DIRでディレクトリを指定など、他と合わせる感じでt/r -iに変更g/rはg/iと違って hack が前提なので、h/rhack-reactiveなどにした方がよい?./a.outにしてoj h/r -c ./hacked -g ./generator ./judgeとかにしてしまう?