Log inGet started
Package

treeTests.testSuite

Newest version

README.md

treeTests

Checks incrementalKit 1.3.0's upgrade tree and exclusive groups (9 tests):

  • incrementalKit.tree layout: a band per category, depth from the prerequisite chain, an edge per prerequisite, exclusive options side by side, children under their parents, radial rings with no two nodes overlapping;
  • Tree.neighbor: the d-pad walks along edges first, then to the nearest node that way;
  • exclusive groups: buying one option locks the others (with a "You chose X instead" sentence), exclusiveGroup reports the choice;
  • respec: resets the chosen option and every owned upgrade built on it, charges the respec price, refunds the set share, fires respec; refusals for nothing chosen, too little money and a group with respec = false;
  • effectChange / effectChangeText: real numbers now -> next ("Shove 4 -> 4.48 (+12% push)"), units, generator rates, x10, maxed, the upgrade's own preview(level), and that working them out leaves levels and stats untouched;
  • layout choice: the list stays the default, setup{ shops = { main = { layout = "tree" } } } and ui.open("shop", { layout = "tree" }) pick the tree, and the tree screen builds at desktop and phone sizes with its Buy button focused first.

It leaves drawing, pointer and pad input to captures in play (see NOTES.md) and the economyKit bridge to economyBridgeTests. The profile lives in Inc.memoryStore, so no real save is touched. Run it alone with asset.resolve("treeTests", "testSuite"):run().