Ticket #9 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

Test cases

Reported by: Tim Trautmann <timct@mac.com> Assigned to: jcm
Priority: minor Milestone: 0.1 with tests
Component: tests Version: trunk
Keywords: Cc:

Description

Hi jcm, here are some ideas for tests:

  • Create root on an empty set
  • Add child to existing node
  • Move child from one node to another
  • With two root nodes, make one of the nodes a child of the other
  • Delete a root node
  • Delete a child and all of it's children
  • Test for: roots
  • Test for: parent (for both a root node and a child node)
  • Test for: ancestors
  • Test for: self_and_ancestors
  • Test for: siblings
  • Test for: self_and_siblings
  • Test for: level (for root, and a couple of levels below)
  • Test for: children_count
  • Test for: full_set
  • Test for: all_children
  • Test for: children
  • Test for: move_to_left_of
  • Test for: move_to_right_of
  • Test for: move_to_child_of

Change History

10/10/06 13:32:30 changed by jcm

  • version set to trunk.
  • component changed from component1 to tests.
  • milestone set to 0.1 with tests.

10/10/06 13:40:36 changed by jcm

  • owner changed from somebody to jcm.

11/15/06 23:51:13 changed by Krishna

  • status changed from new to closed.
  • resolution set to fixed.

Fairly comprehensive tests for all methods committed in rev. 19.