From 0f870c6ebde05d01988583267cd83dd0d0f45539 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 3 Oct 2022 17:47:33 +0200 Subject: Remove support for XML HAFAS interfaces --- t/30-invalid-xml.t | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 t/30-invalid-xml.t (limited to 't/30-invalid-xml.t') diff --git a/t/30-invalid-xml.t b/t/30-invalid-xml.t deleted file mode 100755 index f8f7d58..0000000 --- a/t/30-invalid-xml.t +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; -use 5.020; - -use utf8; - -use File::Slurp qw(read_file); -use Test::More tests => 2; - -use Travel::Status::DE::HAFAS; - -my $xml = 'lol'; - -my $status = Travel::Status::DE::HAFAS->new( - service => 'NASA', - station => 'Berlin Jannowitzbrücke', - xml => $xml -); - -is( scalar $status->results, - 0, 'no results on valid XML with invalid HAFAS data' ); - -$xml = 'lol<'; - -$status = Travel::Status::DE::HAFAS->new( - service => 'NASA', - station => 'Berlin Jannowitzbrücke', - xml => $xml -); - -is( scalar $status->results, 0, 'no results on invalid XML' ); -- cgit v1.2.3