use strict;
-use Test::More tests => 177;
+use Test::More tests => 180;
use SQL::Translator;
use SQL::Translator::Parser::MySQL qw(parse);
use SQL::Translator::Schema::Constants;
my $val = parse($tr, $data);
my $schema = $tr->schema;
+ is( $schema->is_valid, 1, 'Schema is valid' );
my @tables = $schema->get_tables;
is( scalar @tables, 1, 'Right number of tables (1)' );
my $table = shift @tables;
);
my $schema = $tr->schema;
+ is( $schema->is_valid, 1, 'Schema is valid' );
my @tables = $schema->get_tables;
is( scalar @tables, 1, 'Right number of tables (1)' );
my $table = shift @tables;
) or die $tr->error;
my $schema = $tr->schema;
+ is( $schema->is_valid, 1, 'Schema is valid' );
my @tables = $schema->get_tables;
is( scalar @tables, 2, 'Right number of tables (2)' );