From: Ken Youens-Clark Date: Wed, 15 Apr 2009 18:23:54 +0000 (+0000) Subject: Now passes. X-Git-Tag: v0.11008~194 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ae88fa44963dc20385a0f22389cd439f866b0f0;p=dbsrgits%2FSQL-Translator.git Now passes. --- diff --git a/t/46xml-to-pg.t b/t/46xml-to-pg.t index 04b2f5c..dcf08af 100644 --- a/t/46xml-to-pg.t +++ b/t/46xml-to-pg.t @@ -5,6 +5,7 @@ use FindBin qw/$Bin/; use Test::More; use Test::SQL::Translator; use Test::Exception; +use Test::Differences; use Data::Dumper; use SQL::Translator; use SQL::Translator::Schema::Constants; @@ -32,7 +33,7 @@ my $sql = $sqlt->translate( filename => $xmlfile, ) or die $sqlt->error; -is($sql, << "SQL"); +eq_or_diff($sql, << "SQL"); DROP TABLE "Basic" CASCADE; CREATE TABLE "Basic" ( "id" serial NOT NULL, @@ -63,4 +64,5 @@ CREATE VIEW "email_list" ( "email" ) AS ( ALTER TABLE "Basic" ADD FOREIGN KEY ("another_id") REFERENCES "Another" ("id") DEFERRABLE; + SQL