5 use Test::More tests => 2;
10 my $yaml = q/--- #YAML:1.0
196 database_event: insert
201 perform_action_when: ~
208 select pr.person_id, pr.name as person_name, pt.name as pet_name
209 from person pr, pet pt
210 where person.person_id=pet.pet_id
213 my $tr = SQL::Translator->new(
216 filename => "$Bin/data/sqlite/create.sql",
220 ok( $out = $tr->translate, 'Translate SQLite to YAML' );
221 eq_or_diff( $out, $yaml, 'YAML matches expected' );