File: 06simpledict.t

package info (click to toggle)
libdata-phrasebook-perl 0.35-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 276 kB
  • sloc: perl: 1,242; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl

use strict;
use Test::More tests => 1;

use Data::Phrasebook;

my $pb = Data::Phrasebook->new(
    file => 't/01phrases.txt',
    dict => 'Nonsense'
);

eval {$pb->fetch('foo')};
like ( $@, qr{^File \[t/01phrases.txt/Nonsense\] not accessible!}, 'fetch called data called dict and scalar was okay');