I tried test exception but it kills the script
if I comment out this test
All tests successful.
Now with the test
...
use_ok( 'Test::Exception' );
...
throws_ok { $objRef->parse_date_string() } qr/improper initialization
+please see the docs/, 'checking 2 few args';
t/01-object....ok 1/23improper initialization please see the docs at t
+/01-object.t line 56
# Looks like your test died just after 23.
t/01-object....dubious
+
Test returned status 255 (wstat 65280, 0xff00)
after all the subtests completed successfully
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------
t/01-object.t 255 65280 23 0 0.00% ??
Failed 1/2 test scripts, 50.00% okay. 0/25 subtests failed, 100.00% ok
+ay.
make: *** [test_dynamic] Error 255
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|