Initial commit
[dbsrgits/SQL-Abstract-2.0-ish.git] / t / 001_basic.t
CommitLineData
a0185af2 1use strict;
2use warnings;
3
4use Test::More tests => 3;
5
6use_ok('SQL::Abstract') or BAIL_OUT( "$@" );
7
8is SQL::Abstract->generate( [ -name => qw/me id/]), "me.id",
9 "Simple name generator";
10
11is SQL::Abstract->generate(
12 [ -list =>
13 [ -name => qw/me id/],
14 [ -name => qw/me foo bar/],
15 [ -name => qw/bar/]
16 ]
17), "me.id, me.foo.bar, bar",
18 "List generator";