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;
62 parser_type: SQL::Translator::Parser::YAML
64 producer_type: SQL::Translator::Producer::YAML
70 # Parse the test schema
72 $obj = SQL::Translator->new(
79 # Filter from SQL::Translator::Filter::*
86 ) or die "Failed to create translator object: ".SQL::Translator->error;
89 lives_ok { $out = $obj->translate; } "Translate ran";
90 is $obj->error, '' ,"No errors";
91 ok $out ne "" ,"Produced something!";
92 eq_or_diff $out, $ans_yaml ,"Output looks right";