#!perl
use Cassandane::Tiny;

sub test_calendarevent_get_locations_geo
    :min_version_3_1
{
    my ($self) = @_;

    my ($id, $ical) = $self->icalfile('locations-geo');

    my $event = $self->putandget_vevent($id, $ical);
    my @locations = values %{$event->{locations}};
    $self->assert_num_equals(1, scalar @locations);
    $self->assert_matches(qr{\Ageo:37\.38601\d*,-122\.08290\d*\Z},
                          $locations[0]{coordinates});
}
