#!perl -w use strict; use Data::Microformat::geo; use Test::More tests => 5; my $simple = << 'EOF';
GEO: 37.779598, -122.398453
EOF ok(my $geo = Data::Microformat::geo->parse($simple)); is($geo->latitude, "37.779598"); is($geo->longitude, "-122.398453"); my $comparison = << 'EOF';
37.779598
-122.398453
EOF is($geo->to_hcard, $comparison); my $text_comparison = << 'EOF'; geo: latitude: 37.779598 longitude: -122.398453 EOF is($geo->to_text, $text_comparison);