Changes for past two commits
[scpubgit/Q-Branch.git] / t / 15placeholders.t
CommitLineData
9d11f0d4 1use strict;
2use warnings;
3
4use Test::More;
5use SQL::Abstract::Tree;
6
7my $placeholders = ['station', 'lolz'];
8
9{
10 my $sqlat = SQL::Abstract::Tree->new({
11 fill_in_placeholders => 1,
12 placeholder_surround => [qw(; -)],
13 });
14
15 is($sqlat->fill_in_placeholder($placeholders), q(';lolz-'),
16 'placeholders are populated correctly'
17 );
18}
19
20{
21 my $sqlat = SQL::Abstract::Tree->new({
22 fill_in_placeholders => 1,
23 placeholder_surround => [qw(< >)],
24 });
25
26 is($sqlat->fill_in_placeholder($placeholders), q('<station>'),
27 'placeholders are populated correctly and in order'
28 );
29}
30
31done_testing;