Phlip ([EMAIL PROTECTED]) wrote:
> Perlies:
> 
> I like unit tests. My employers like Win32, VC++, and Perl. So here I am
> writing an "acceptance test" rig for our VC++ code, and it calls
> Perl embedded in the C++ code.
> 
> When an assertion fails, such as this one...
> 
>   $self -> assert ($result =~ /LW is god/);

That assertion is potentially buggy.  Please read the
Test::Unit::Assert manpage carefully, and use assert_matches()
instead.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Perlunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/perlunit-users

Reply via email to