Bit size can range from 1 to 64, test added for size greater than one
[dbsrgits/SQL-Translator.git] / t / 12header_comment.t
CommitLineData
631aafb6 1#!/usr/bin/perl
2# vim: set ft=perl:
3
b30f8707 4use strict;
5use Test::More tests => 5;
631aafb6 6use SQL::Translator::Utils qw($DEFAULT_COMMENT header_comment);
7
631aafb6 8# Superfluous test, but that's ok
9use_ok("SQL::Translator::Utils");
10
11is($DEFAULT_COMMENT, '-- ', 'default comment');
12like(header_comment("foo"), qr/[-][-] Created by foo/, "Created by...");
13
14my $comm = header_comment("My::Producer",
15 $DEFAULT_COMMENT,
16 "Hi mom!");
17like($comm, qr/[-][-] Created by My::Producer/, 'Multiline header comment...');
18like($comm, qr/[-][-] Hi mom!/, '...with additional junk');