From: Robin Edwards Date: Wed, 10 Feb 2010 13:58:05 +0000 (+0000) Subject: re-arranged tests X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a064bfa55e3df0868f7128bea6b9dec459df84b8;p=p5sagit%2FDevel-Declare-Keyword.git re-arranged tests --- diff --git a/MANIFEST b/MANIFEST index e52b6bd..bf81926 100644 --- a/MANIFEST +++ b/MANIFEST @@ -10,7 +10,9 @@ lib/Keyword/Parse/Block.pm lib/Keyword/Parse/Proto.pm examples/DDExample.pm examples/Methods.pm +examples/SQL.pm t/00-use.t t/01-dd-example.t t/02-syntax.t -t/03-methods.t +t/usecase/methods.t +t/usecase/sql.t diff --git a/t/03-methods.t b/t/03-methods.t deleted file mode 100644 index e936a75..0000000 --- a/t/03-methods.t +++ /dev/null @@ -1,19 +0,0 @@ -package Foobar; -use strict; -use warnings; -use lib 'examples/'; -use Methods; - -method add ($a, $b, $c) { - return $a+$b+$c; -} - - -1; - -use Test::More qw/no_plan/; -use Data::Dumper; - -ok (Foobar->add(1,2,3)==6); - -ok 1; diff --git a/t/04-sql.t b/t/04-sql.t deleted file mode 100644 index 371b5b0..0000000 --- a/t/04-sql.t +++ /dev/null @@ -1,17 +0,0 @@ -use Test::More qw/no_plan/; -use strict; -use warnings; -use lib 'examples/'; -use SQL; -use Data::Dumper; - -ok 1; - -SQL::CONNECT("dbi:Pg:dbname=humus;host=localhost;port=5432"); - -my $r = SELECT * FROM TRACK; - -diag Dumper $r; -#ok ($r); - -ok 1;