From 93b882cdde1b499650fb6aefdcdd752e3a9cddff Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 6 Oct 2010 09:15:36 -0400 Subject: [PATCH] use Test::More for t/Koha.t Signed-off-by: Galen Charlton --- t/Koha.t | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/t/Koha.t b/t/Koha.t index f4ba20ff92..c06a406583 100755 --- a/t/Koha.t +++ b/t/Koha.t @@ -1,19 +1,15 @@ -BEGIN { $| = 1; print "1..2\n"; } -END {print "not ok 1\n" unless $loaded;} -use C4::Koha; -$loaded = 1; -print "ok 1\n"; +#!/usr/bin/perl +use strict; +use warnings; + +use Test::More tests => 2; + +use_ok('C4::Koha'); # # test that &slashifyDate returns correct (non-US) date # -$date = "01/01/2002"; -$newdate = &slashifyDate("2002-01-01"); - -if ($date eq $newdate) { - print "ok 2\n"; -} else { - print "not ok 2\n"; -} - +my $date = "01/01/2002"; +my $newdate = &slashifyDate("2002-01-01"); +ok($date eq $newdate, 'slashifyDate'); -- 2.20.1