X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=unit_tests%2Fformat.php;h=beeaa03951dbee67e714ce6628dfb459d48c16fc;hb=900e09b8300463e3dd42e89c21de181520513e95;hp=92644181a66b62e1a528262505f831a9400be026;hpb=f920d084acbf8c53c996a6fee26530a41e7e0559;p=wfpl.git diff --git a/unit_tests/format.php b/unit_tests/format.php index 9264418..beeaa03 100644 --- a/unit_tests/format.php +++ b/unit_tests/format.php @@ -1,27 +1,17 @@ . - - -# This file contains tests for functions in code/wfpl/format.php +# This program is in the public domain within the United States. Additionally, +# we waive copyright and related rights in the work worldwide through the CC0 +# 1.0 Universal public domain dedication, which can be found at +# http://creativecommons.org/publicdomain/zero/1.0/ + + +# This file contains tests for functions in wfpl/format.php # -# See code/wfpl/test.php for details on how to run or create tests +# See wfpl/test.php for details on how to run or create tests -require_once('code/wfpl/format.php'); +require_once(__DIR__.'/../'.'format.php'); function _test_format_money($arg, $dollars_correct, $money_correct) { unit_test_func('format_dollars', $arg, $dollars_correct); @@ -70,7 +60,6 @@ function _test_format_int($arg, $correct) { unit_test_func('format_decimal', $arg, $correct); } -# returns number of errors function test_format_misc() { unit_test_func('format_caption', 'something', 'Something'); unit_test_func('format_caption', 'two_words', 'Two Words');