Log inGet started
Package

unlockLadder.testSuite

README.md

unlockLadder test suite

Checks unlockLadder.ladder on a memory store (never a real player's progress):

  • Levels and unlocks: level 1 → count + 1 as steps pass, the start set plus each passed step's reward, unlockedBy, and the filled-in index / reward / goal.
  • Goals and credit: the built-in run kind and a custom one, an unknown kind never passing; credit tries open unpassed steps in order, saves a met goal with the extra info, saves nothing for a failed one, tries the active step first (a re-pass is already, no new unlocks), and credits nothing to a locked step.
  • Storage: done and prefs land under <id>/done/ and <id>/prefs/ in the store and a new ladder on the same store reads them back.
  • README first example, run as written.

Run with zero tests run unlockLadder (edit mode).