re-arranged tests
Robin Edwards [Wed, 10 Feb 2010 13:58:05 +0000 (13:58 +0000)]
MANIFEST
t/03-methods.t [deleted file]
t/04-sql.t [deleted file]

index e52b6bd..bf81926 100644 (file)
--- 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 (file)
index e936a75..0000000
+++ /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 (file)
index 371b5b0..0000000
+++ /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;