4 # Before `make install' is performed this script should be runnable with
5 # `make test'. After `make install' it should work as `perl test.pl'
10 use Test::SQL::Translator qw(maybe_plan);
15 maybe_plan(4, 'YAML', 'Test::Differences')
17 use Test::Differences;
20 # The _GLOBAL_ table should be removed and its fields copied onto all other
107 parser_type: SQL::Translator::Parser::YAML
109 producer_type: SQL::Translator::Producer::YAML
115 # Parse the test XML schema
117 $obj = SQL::Translator->new(
124 # Filter from SQL::Translator::Filter::*
126 # A global field to add given in the args
130 data_type => 'timestamp',
142 ) or die "Failed to create translator object: ".SQL::Translator->error;
145 lives_ok { $out = $obj->translate; } "Translate ran";
146 is $obj->error, '' ,"No errors";
147 ok $out ne "" ,"Produced something!";
148 eq_or_diff $out, $ans_yaml ,"Output looks right";