coding-blocks / coding-blocks/hackerblocks.projectx

[Feature request] Need ability to see expected output for a custom test case

オープン
#77 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
7
フォーク
27
PR マージ指標
30日以内にマージされた PR はありません

説明

Provide a button "see expected output" before compile and test button (OR) when we compile and test, provide output for user's code and correct/expected output.

Given a test case, the judge should run that test case on the correct/official solution and give the results. This will help us get more clarity on problem statement and expected solution.

Example problem statement:
Give an integer, reverse it.
Sample input:
789
Sample output:
987

But, if integer 100 is input, when we reverse it, the expected output could be 001 or just 1.
If expected output option is there, it will help user understand what kind of output is expected in all possible scenarios far better. Else, user will have to do multiple submissions doing trail and error for all possible cases.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

この issue にはファイル、テスト、エントリーポイントが記載されていないため、まずカスタムのテスト用コンパイルおよびテストフローと、judge による公式解答の処理を見つけてください。expected-output アクションが選択したケースをどのように実行し、両方の出力を表示するか(100 を反転するケースなども含む)を定義し、その後、関連する UI テストと judge テストで動作を確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
full-stack, testing-qa
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。