ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/test/test_TreeNode.pm
Revision: 1.2
Committed: Mon Aug 28 08:10:43 2000 UTC (24 years, 8 months ago) by williamc
Content type: text/plain
Branch: MAIN
CVS Tags: V1_pre0, HEAD
Branch point for: SCRAM_V1_BRANCH
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
get to same state as HPWbranch

File Contents

# Content
1 #
2 # TreeNode test suite
3 #
4
5 package test_TreeNode;
6 require 5.001;
7 use ActiveDoc::TreeNode;
8 @ISA = ("TestClass"); #methods both from the test class
9
10 sub init {
11 my $self=shift;
12 }
13
14 sub test {
15 my $self=shift;
16 $self->{expectedstring}="";
17
18 $self->newtest("Make a Node");
19 $self->newobject("test home");
20 $self->expect("test home");
21 $self->testinterface("name");
22 $self->clearexpect();
23
24 $self->newtest("Try and find the same node");
25
26 $this=$self->testinterface("find", "test home");
27 $self->testfail("Unable to find self")
28 if ( $this->name() ne "test home" );
29 $self->newtest("Find Non-existent node test");
30 $self->expect("");
31 $self->testinterface("find", "test fail");
32 $self->clearexpect();
33 }