Help for this page

Select Code to Download


  1. or download this
    foreach my $num ( $point->coordinates ) {
        ok looks_like_number($num), "... and $num should be a number";
    }
    
  2. or download this
    ok my @coordinates = $point->coordinates, 
      'coordinates() should return the coordinates';
    is scalar @coordinates, 3, '... and it should return the correct numbe
    +r of them';
    foreach my $num ( @coordinates ) {
        ok looks_like_number($num), "... and each should be a number ($num
    +)";
    }