X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=unit_tests%2Fformat.php;h=0869a7eb79158076b6b09069e2bc9142b7205b17;hb=7ed4e19f49230c9ac8c0d1eb5a80cbae46d6c61b;hp=705440b031456265723a477893526d6567b3007b;hpb=fa74cebf2b6bec017dbcc5e19121f10adbaf3aec;p=wfpl.git diff --git a/unit_tests/format.php b/unit_tests/format.php index 705440b..0869a7e 100644 --- a/unit_tests/format.php +++ b/unit_tests/format.php @@ -1,6 +1,6 @@ 'Eno', 'two' => 'Owt', 'symbols&\'"' => 'Slobmys'), PULLDOWN_HASH); + $errors +=_test_format_options('hash', 'one', 'one'); + $errors +=_test_format_options('hash', 'One', ''); + $errors +=_test_format_options('hash', 'two', 'two'); + $errors +=_test_format_options('hash', 'symbols&\'"', ''); + pulldown('array_2d', array(array('one', 'Eno'), array('two', 'Owt'), array('symbols&\'"', 'Slobmys')), PULLDOWN_2D); + $errors +=_test_format_options('array_2d', 'one', 'one'); + $errors +=_test_format_options('array_2d', 'One', ''); + $errors +=_test_format_options('array_2d', 'two', 'two'); + $errors +=_test_format_options('array_2d', 'symbols&\'"', ''); + return $errors; } +# returns number of errors function format_unit_tests_main() { $errors = 0; $errors += test_format_money(); + $errors += test_format_misc(); + $errors += test_format_options(); return $errors; }