diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2006-08-18 14:09:44 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2006-08-18 14:09:44 +0000 |
commit | 50bf20203670b3b3a1fd050c588231761f588c5b (patch) | |
tree | d0d8af8038b1acf6d78e7dde52b626d18378847b /t/03mediacfg.t | |
parent | 43f19b38993c3f57cebaff4cc10425900f7d5246 (diff) | |
download | perl-MDV-Distribconf-50bf20203670b3b3a1fd050c588231761f588c5b.tar perl-MDV-Distribconf-50bf20203670b3b3a1fd050c588231761f588c5b.tar.gz perl-MDV-Distribconf-50bf20203670b3b3a1fd050c588231761f588c5b.tar.bz2 perl-MDV-Distribconf-50bf20203670b3b3a1fd050c588231761f588c5b.tar.xz perl-MDV-Distribconf-50bf20203670b3b3a1fd050c588231761f588c5b.zip |
- more test, provide basic functions
Diffstat (limited to 't/03mediacfg.t')
-rw-r--r-- | t/03mediacfg.t | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/t/03mediacfg.t b/t/03mediacfg.t index 0c3f58a..48d6a16 100644 --- a/t/03mediacfg.t +++ b/t/03mediacfg.t @@ -2,8 +2,17 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::More tests => 6; use_ok('MDV::Distribconf::MediaCFG'); -is(MDV::Distribconf::MediaCFG::valid_param('foo', 'name', 'toto'), 0, +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'name', 'toto'), 0, "Valid value return no error"); + +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', '1'), 0, + "valide size value"); +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', '1k'), 0, + "valide size value"); +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', '1d'), 1, + "non valide size value"); +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', 'coin'), 1, + "non valide size value"); |