-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand and improve iteminfo_tests (#37823)
* Add tests for basic info, conductivity, qualities Tests item info for description, category, volume, weight, qualities and conductivity. * Enhance and clean up iteminfo tests Include price and material in basic info test; refactor armor_info tests into one test case with two sections. All passing. * Add weapon, repairability, and flags Includes tests for: - Weapon attack rating and mvoes - Techniques when wielded - Repairability and with what tools - Item description flags * Add missing brace and fix brace style * Expand ranged weapon and food spoilage tests Using compound bow to test: - reload time - firing mode - weapon mods Using pine nuts to test: - freshness/spoiled indicator * Remove longshirt repair test This test fails with the magiclysm mod loaded, since it inserts "enchanted tailor's kit" into the repair options. Since it's not essential, I simply took it out for now. * Remove trailing space Co-Authored-By: Isaac Freund <[email protected]> * Disable lint for reload time test Co-Authored-By: Isaac Freund <[email protected]> * Ensure consistent spoilage estimate in test item.cpp#L934 `get_freshness_description` gives more detailed rot estimation messages to more skilled characters. Travis-CI revealed this test failing sometimes; this commit should ensure a consistent (0) skill level when testing these messages. Co-authored-by: Isaac Freund <[email protected]>
- Loading branch information
Showing
1 changed file
with
264 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters