3 # This program is in the public domain within the United States. Additionally,
4 # we waive copyright and related rights in the work worldwide through the CC0
5 # 1.0 Universal public domain dedication, which can be found at
6 # http://creativecommons.org/publicdomain/zero/1.0/
9 # This file contains tests for functions in wfpl/misc.php
11 # See wfpl/unit_tests.php for details on how to run or create tests
14 require_once(__DIR__.'/../'.'misc.php');
16 function test_ordinalize() {
49 for($i = 0; $i < count($tests); $i += 2) {
51 $correct = $tests[$i + 1];
52 unit_test_func('ordinalize', $arg, $correct);
56 function misc_unit_tests_main() {