X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F33tt-table-producer.t;h=7d7502379ec1e91e0ac226f74e418017d234171e;hb=f3fccb750c0cd2471086751ee81edab2d9109c72;hp=226679e5f67ba2b76f9cbe2f89f5e6cce3983a64;hpb=0be5b227cf41450dfbd47a634ace6efdd68b1d24;p=dbsrgits%2FSQL-Translator.git diff --git a/t/33tt-table-producer.t b/t/33tt-table-producer.t index 226679e..7d75023 100644 --- a/t/33tt-table-producer.t +++ b/t/33tt-table-producer.t @@ -21,7 +21,7 @@ use File::Temp qw/tempdir/; #============================================================================= BEGIN { - maybe_plan(8, 'Template', 'Test::Differences') + maybe_plan(8, 'Template 2.20', 'Test::Differences') } use Test::Differences; @@ -66,20 +66,22 @@ is( $files[1], "$tdir/pet.txt" , "Wrote pet.txt" ); open(FILE, "$tdir/person.txt") || die "Couldn't open $tdir/person.txt : $!"; eq_or_diff , qq{Table: person Primary Key: person_id - Foriegn Keys: + Foreign Keys: Data Fields: name, age, weight, iq, description } , "person.txt looks right"; +close(FILE); open(FILE, "$tdir/pet.txt") || die "Couldn't open $tdir/pet.txt : $!"; eq_or_diff , qq{Table: pet Primary Key: pet_id, person_id - Foriegn Keys: + Foreign Keys: Data Fields: name, age } -, "person.txt looks right"; +, "pet.txt looks right"; +close(FILE); print $out if DEBUG; @@ -88,11 +90,11 @@ print $out if DEBUG; __DATA__ Table: person Primary Key: person_id - Foriegn Keys: + Foreign Keys: Data Fields: name, age, weight, iq, description Table: pet Primary Key: pet_id, person_id - Foriegn Keys: + Foreign Keys: Data Fields: name, age