in reply to Test::More how come?
Generally STDOUT does not show up with make test
You can use diag or print STDERR :
#!/usr/local/bin/perl use Test::More; print STDERR "4 - 2 = " , ( 4 - 2 ) . "\n"; cmp_ok ( 4 - 2 , '==', 2, "maths works" ); print STDERR "\n"; print STDERR "-2.3 - -0.6 = " . ( -2.3 - -0.6 ) ."\n"; cmp_ok ( -2.3 - -0.6 , '==', -1.7, "maths works" ); done_testing();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Test::More how come?
by sem999 (Initiate) on Jan 30, 2013 at 17:13 UTC | |
by keszler (Priest) on Jan 30, 2013 at 17:24 UTC | |
by thmsdrew (Scribe) on Jan 30, 2013 at 17:26 UTC | |
by sem999 (Initiate) on Jan 30, 2013 at 17:44 UTC | |
by tmharish (Friar) on Jan 30, 2013 at 17:20 UTC | |
by soonix (Canon) on Jan 30, 2013 at 17:26 UTC |
In Section
Seekers of Perl Wisdom