JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added ordinalize() and tests for it
[wfpl.git] / unit_tests.php
index 89b54dd..97df911 100644 (file)
@@ -43,13 +43,13 @@ function run_unit_tests($directory, $basenames) {
                message("running tests in $filename");
                $errors += file_run_unit_tests($filename);
        }
-       message("tests finished with $errors errors");
+       message("tests finished with $errors error" . enc_s($errors));
 }
 
 # Call this to unit test wfpl. By default it tests everything, or you can pass
 # a space-separated list of the basenames of the files in code/wfpl/unit_tests/
 # that you'd like to run.
-function unit_test_wfpl($basenames = 'format') {
+function unit_test_wfpl($basenames = 'format db misc') {
        tem_load('code/wfpl/unit_tests/template.html');
        run_unit_tests('code/wfpl/unit_tests', $basenames);
        display_messages();