Initial commit
[aard.git] / t / Aard.t
CommitLineData
1b53d9d3
MG
1#!/usr/bin/perl -w
2use v5.14;
3use strict;
4use warnings;
5
6use Test::More tests => 9;
7BEGIN { use_ok('Aard') };
8
9my $dict = Aard->new('t/jargon-4.4.7-1.aar');
10is lc $dict->uuid_string, '4e5c4639-9d1d-42ee-b27d-b552d6b7386d', 'uuid_string';
11is $dict->volume, 1, 'volume';
12is $dict->total_volumes, 1, 'total_volumes';
13is $dict->count, 2307, 'count';
14
15is $dict->title, 'The Jargon File', 'title';
16is $dict->index_language, 'ENG', 'index_language';
17
18is $dict->key(20), 'admin', 'key 20';
19like $dict->article(20), qr/administrator/, 'value 20';
This page took 0.009123 seconds and 4 git commands to generate.