Module 10 · In Studio · challenge 3 of 3 in this lesson
challenges/automated_tests_work.luau implements health > before - 5
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Replace the flaky equality in the learner file with the suite's rule. To grade the change, use m14-ship, press Play and run this in the server command bar:
game.ServerScriptService.RunGameTests:Invoke("automated-tests")
- Start from
- The game at milestone m06 (download)
- Grade it
- To grade work from an earlier milestone, apply your challenge changes to a checkout based on
m14-ship, which includes the Course Runner. In Studio, press Play, then rungame.ServerScriptService.RunGameTests:Invoke("automated-tests")in the server command bar. Copy the pass code from Output.
Done means
- challenges/automated_tests_work.luau implements health > before - 5
- A heal of 1 or 2 holds, a drop of 15 fails, a drop of exactly 5 fails
- challenges/automated-tests.luau prints TEST PASS for all seven cases