# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# This file contains tests for functions in code/wfpl/format.php
+# 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);
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');