Skip to content

Commit

Permalink
[Test] Add in a new test method specifically for comparing strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed May 3, 2012
1 parent 1851a8b commit 0788d25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/Asserter.winxed
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ class Rosella.Test.Asserter
}
}

function str_equal(string s1, string s2,
string message [optional], int has_msg [opt_flag])
{
if (s1 != s2) {
message = self.__default_message(message, has_msg, "strings not equal");
self.fail(message);
}
}

// Determine if the two objects are equal. Expect that they are not
function not_equal(var o1, var o2,
string message [optional], int has_msg [opt_flag])
Expand Down

0 comments on commit 0788d25

Please sign in to comment.