# Astro::VO::VOEvent test harness # strict use strict; #load test use Test::More tests => 8; # load modules BEGIN { use_ok("Astro::VO::VOEvent"); } # debugging use Data::Dumper; # T E S T H A R N E S S -------------------------------------------------- # test the test system ok(1); # read from data block my @buffer = ; chomp @buffer; my $object = new Astro::VO::VOEvent(); my $document = $object->build( Role => 'test', ID => 'ivo://raptor.lanl/23456789/', Description => 'This is a bit of human readable text', Reference => { URL => 'http://www.raptor.lanl.gov/documents/event233.xml', Type => 'voevent'} ); my @xml = split( /\n/, $document ); foreach my $i ( 0 ... $#buffer ) { is( $xml[$i], $buffer[$i], "comparing line $i in XML document" ); } # T I M E A T T H E B A R --------------------------------------------- exit; # D A T A B L O C K -------------------------------------------------------- __DATA__ This is a bit of human readable text