X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ad06ed73b3e1d5932d874ef389daa109307db723..06a0f32d8602a6b79e51b0fcd51edb67e780a003:/t/html/util.t diff --git a/t/html/util.t b/t/html/util.t new file mode 100644 index 000000000..1b9bb80ab --- /dev/null +++ b/t/html/util.t @@ -0,0 +1,24 @@ +use Test::More; + +use_ok 'SL::HTML::Util'; + +sub test { + is(SL::HTML::Util::strip($_[0]), $_[1], "$_[2] (direct invocation)"); + is(SL::HTML::Util->strip($_[0]), $_[1], "$_[2] (class invocation)"); +} + +test undef, '', 'undef'; +test 0, '0', '0'; +test '0 but true', '0 but true', 'zero but true'; +test '