added test for the html profile destroyed placeholder problem
[dbsrgits/SQL-Abstract.git] / t / 16no_sideeffects.t
CommitLineData
c4794c97 1use strict;
2use warnings;
3
4use Test::More;
5use SQL::Abstract::Tree;
6
7ok my $placeholders = [100,'xxx'];
8ok my $sqlat = SQL::Abstract::Tree->new({profile=>'html'});
9ok my $out = $sqlat->format('SELECT * FROM bar WHERE x = ?', $placeholders);
10
11is $placeholders->[0], 100,
12 'did not mess up a placeholder';
13
14done_testing;