Add Compat->AST tests for the complex test from compat/00new.t
[dbsrgits/SQL-Abstract-2.0-ish.git] / t / 002_types.t
CommitLineData
cbcfedc1 1use strict;
2use warnings;
3
bad761ba 4use Test::More tests => 3;
cbcfedc1 5
6use MooseX::Types::Moose qw/ArrayRef Str Int Ref HashRef/;
7use SQL::Abstract::Types ':all';
8
bad761ba 9is(AST->validate( { -type => 'select', select => [] } ), undef, "is_AST with valid" );
10ok(!is_AST( { foo => 'bar' } ), "is_AST with invalid" );
cbcfedc1 11
12is(AST->validate( { -type => 'select', select => [] } ), undef, "is_AST with valid hash" );
cbcfedc1 13