Skip to content

Commit

Permalink
Fix up some Test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Jan 31, 2012
1 parent 22a9251 commit 4ea5ad3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/test/Asserter.winxed
Expand Up @@ -231,12 +231,6 @@ class Rosella.Test.Asserter
self.fail(message);
}

//function within_delta($o1, $o2, $delta, string message [optional], int has_msg [opt_flag] "difference not within delta") {
// my $difference = $o1 - $o2;
// $difference = - $difference if $difference < 0;
// self.fail($message) unless $difference < $delta;
//}

// meta-test. Runs the block as a test, and expects a failure
function expect_fail(var block, string message [optional], int has_msg [opt_flag])
{
Expand Down
6 changes: 3 additions & 3 deletions src/test/Builder.winxed
Expand Up @@ -7,9 +7,9 @@
*/
class Rosella.Test.Builder
{
var test_number;
var output;
var nest_level;
var test_number; // The number of the current test, starting at 1
var output; // The output Handle
var nest_level; // The level of TAP nesting

// Constructor
function Builder(int nest_level, var output [optional], int has_out [opt_flag])
Expand Down
1 change: 1 addition & 0 deletions src/test/Failure.winxed
Expand Up @@ -34,6 +34,7 @@ class Rosella.Test.Failure
self.inner_ex = inner_ex;
}

// Throw the failure exception
function throw()
{
throw self.exception;
Expand Down
2 changes: 1 addition & 1 deletion src/test/TestContext.winxed
Expand Up @@ -6,7 +6,7 @@
*/
class Rosella.Test.TestContext
{
var data;
var data; // The data hash

// Create the TestContext, initializing the data store with any named
// values
Expand Down
4 changes: 4 additions & 0 deletions src/test/suitefactory/List.winxed
@@ -1,3 +1,7 @@
/* Function List SuiteFactory
This suite factory takes a list of test functions and constructs a suite
from them.
*/
class Rosella.Test.SuiteFactory.List : Rosella.Test.SuiteFactory
{
/* Public Methods
Expand Down

0 comments on commit 4ea5ad3

Please sign in to comment.