[Bast-commits] r5211 - in SQL-Abstract/1.x/branches/1.50_RC: . t

norbi at dev.catalyst.perl.org norbi at dev.catalyst.perl.org
Wed Nov 26 22:24:44 GMT 2008


Author: norbi
Date: 2008-11-26 22:24:43 +0000 (Wed, 26 Nov 2008)
New Revision: 5211

Modified:
   SQL-Abstract/1.x/branches/1.50_RC/
   SQL-Abstract/1.x/branches/1.50_RC/t/02where.t
Log:
 r5271 at vger:  mendel | 2008-11-26 23:24:37 +0100
  * Removed a wrong test (tested for overloaded stringification).
  * Simplified a test for blessed objects.



Property changes on: SQL-Abstract/1.x/branches/1.50_RC
___________________________________________________________________
Name: svk:merge
   - 4d5fae46-8e6a-4e08-abee-817e9fb894a2:/local/bast/SQL-Abstract/1.x/branches/1.50_RC:5259
   + 4d5fae46-8e6a-4e08-abee-817e9fb894a2:/local/bast/SQL-Abstract/1.x/branches/1.50_RC:5271

Modified: SQL-Abstract/1.x/branches/1.50_RC/t/02where.t
===================================================================
--- SQL-Abstract/1.x/branches/1.50_RC/t/02where.t	2008-11-26 22:22:54 UTC (rev 5210)
+++ SQL-Abstract/1.x/branches/1.50_RC/t/02where.t	2008-11-26 22:24:43 UTC (rev 5211)
@@ -11,7 +11,7 @@
 # Make sure to test the examples, since having them break is somewhat
 # embarrassing. :-(
 
-my $not_stringifiable = SQLA::NotStringifiable->new();
+my $not_stringifiable = bless {}, 'SQLA::NotStringifiable';
 
 my @handle_tests = (
     {
@@ -183,12 +183,6 @@
    },
 
    {
-       where => { foo => SQLA::FourtyTwo->new(), },
-       stmt => " WHERE ( foo = ? )",
-       bind => [ 'The Life, the Universe and Everything.' ],
-   },
-
-   {
        where => { foo => $not_stringifiable, },
        stmt => " WHERE ( foo = ? )",
        bind => [ $not_stringifiable ],
@@ -209,42 +203,3 @@
     my $sql = SQL::Abstract->new;
     $sql->where({ foo => { '>=' => [] }},);
 };
-
-
-
-#======================================================================
-package SQLA::FourtyTwo; # testing stringification of arguments
-#======================================================================
-
-use strict;
-use warnings;
-
-use overload
-  '""' => \&to_str;
-
-sub new
-{
-  bless {}, shift;
-}
-
-sub to_str
-{
-  return "The Life, the Universe and Everything.";
-}
-
-1;
-
-
-#======================================================================
-package SQLA::NotStringifiable; # testing stringification of arguments
-#======================================================================
-
-use strict;
-use warnings;
-
-sub new
-{
-  bless {}, shift;
-}
-
-1;




More information about the Bast-commits mailing list