Shawn M Moore > TAEB-0.03 > TAEB::Test

Download:
TAEB-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Source  

test_items ITEM_LIST

Takes a list of two item arrayrefs, where the first item is a string of the item's description and the second item is a hashref containing property/value pairs for the item. For example, test_items(["x - 100 gold pieces", {class => "gold"}], ["a - a +1 long sword (weapon in hand)", {class => "weapon"}]);

test_monsters MONSTER_LIST

Identical to test_items in style, except for monsters.

degrade_ok original, current

Tests whether the original string could possibly degrade to the current string.

degrade_nok original, current

Tests whether the original string could NOT possibly degrade to the current string.

degrade_progression Str, Str, Str, [...]

Test whether a progression is possible. This will not only test adjacent engravings, but also an engraving to all of its children.

plan_tests ITEM_LIST

This will take the test list and count the number of tests that would be run. If called in void context, the plan will be set for you. If called in nonvoid context, the number of tests will be returned.

syntax highlighting: