]> iEval git - lyrics-fetcher-lyricstranslate.git/blame_incremental - 01-network.t
Bump version and update Changes
[lyrics-fetcher-lyricstranslate.git] / 01-network.t
... / ...
CommitLineData
1#!/usr/bin/perl
2use strict;
3use warnings;
4
5use Test::RequiresInternet ('lyricstranslate.com' => 80);
6use Test::More tests => 5;
7
8use Lyrics::Fetcher;
9use Lyrics::Fetcher::LyricsTranslate;
10
11like (
12 Lyrics::Fetcher::LyricsTranslate->fetch('Lyube', 'Kombat'),
13 qr/soldiers/i,
14 'lyrics to Lyube - Kombat contain the word "soldiers"');
15
16like (
17 Lyrics::Fetcher->fetch('Lyube', 'Kombat', 'LyricsTranslate'),
18 qr/soldiers/i,
19 'usage via Lyrics::Fetcher');
20
21like (
22 Lyrics::Fetcher::LyricsTranslate->fetch('Lyube', 'Kombat', 'English'),
23 qr/soldiers/i,
24 'language selection: English');
25
26like (
27 Lyrics::Fetcher::LyricsTranslate->fetch('Lyube', 'Kombat', 'English'),
28 qr/soldiers/i,
29 'language selection: 328');
30
31like (
32 Lyrics::Fetcher::LyricsTranslate->fetch('Lyube', 'Kombat', 'Transliteration'),
33 qr/soldaty/i,
34 'language selection: Transliteration');
This page took 0.027237 seconds and 5 git commands to generate.