L22.P1: loop allows passing the practice despite not producing the expected data

オープン
#1,458 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
godot
領域
testing

調査の方向性

Start with res://course/lesson-23-append-to-arrays/lesson.bbcode and locate L22.P1, “Completing orders.” Reproduce the reported case where the practice passes despite the output not matching the expected orders, then trace how this practice checks the learner’s result. Done means incorrect output no longer passes and the learner receives feedback.

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

説明

bug

The issue here is this practice calls the student function four times and the function is not expected to contain a loop. The output does not match what's expected yet the practice passes without giving the learner a feedback message.

For P1 from L22, on completed orders from visual animation "tomato soup" is doubled. One would be cheese sandwich

Technical information:

  • Location: L22.P1 - Appending and popping values from arrays > Completing orders
  • File: res://course/lesson-23-append-to-arrays/lesson.bbcode
  • Platform: Windows
  • Commit: b9b3161

Code from the current practice

var waiting_orders = [
	"cheese sandwich",
	"burger",
	"toast",
	"tomato soup",
]
var completed_orders = []

func complete_current_order():
	for order in waiting_orders:
		var pending_order = waiting_orders.pop_front()
		completed_orders.append(pending_order)

主要言語
GDScript
スター
2.8k
フォーク
239
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GDQuest/learn-gdscript のほかの issue

GDQuest/learn-gdscript の issue をすべて見る

似ている issue

Testing & QA の issue をもっと見る

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

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