4 if ( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
15 use Test::More tests => 52;
18 use_ok( 'Test::Harness::Point' );
19 use_ok( 'Test::Harness::Straps' );
22 my $strap = Test::Harness::Straps->new;
23 isa_ok( $strap, 'Test::Harness::Straps', 'new()' );
39 'not ok 11 - this is \\# all the name # skip this is not' => {
40 description => 'this is \\# all the name',
43 reason => 'this is not',
46 'not ok 23 # TODO world peace' => {
49 reason => 'world peace',
52 'not ok 42 - universal constant' => {
53 description => 'universal constant',
68 'ok 1066 - and all that' => {
69 description => 'and all that',
73 'ok 11 - have life # TODO get a life' => {
74 description => 'have life',
77 reason => 'get a life',
84 'ok 42 - _is_header() is a header \'1..192 todo 4 2 13 192 \\# Skip skip skip because' => {
85 description => '_is_header() is a header \'1..192 todo 4 2 13 192 \\# Skip skip skip because',
96 for my $line ( sort keys %$testlines ) {
97 my $point = Test::Harness::Point->from_test_line( $line );
98 isa_ok( $point, 'Test::Harness::Point' );
100 my $fields = $testlines->{$line};
101 for my $property ( sort keys %$fields ) {
102 my $value = $fields->{$property};
103 is( eval "\$point->$property", $value, "$property on $line" );
104 # Perls pre-5.6 can't handle $point->$property, and must be eval()d