~ubuntu-branches/ubuntu/trusty/libnumber-bytes-human-perl/trusty

« back to all changes in this revision

Viewing changes to t/20oo.t

  • Committer: Package Import Robot
  • Author(s): Florian Schlichting, Salvatore Bonaccorso, Florian Schlichting
  • Date: 2013-04-04 22:28:47 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130404222847-gxc4euw7ld0lumz4
Tags: 0.09-1
[ Salvatore Bonaccorso ]
* Change Vcs-Git to canonical URI (git://anonscm.debian.org)
* Change search.cpan.org based URIs to metacpan.org based URIs

[ Florian Schlichting ]
* Import Upstream version 0.09
* Document new functionality in short and long description
* Bump Standards-Version to 3.9.4 (use copyright-format 1.0)
* Bump copyright years
* Email change: Florian Schlichting -> fsfs@debian.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!perl -T
2
2
 
3
 
use Test::More tests => 5;
 
3
use Test::More tests => 7;
4
4
 
5
5
use_ok('Number::Bytes::Human');
6
6
 
10
10
isa_ok($human, 'Number::Bytes::Human');
11
11
 
12
12
is($human->format(1E7), '10MB');
 
13
is($human->parse('10MB'), 1E7);
13
14
 
14
15
is($human->set_options(zero => '-'), $human);
15
 
 
16
16
is($human->format(0), '-');
 
17
is($human->parse('-'), 0);
17
18