General clean up to make it more like other tests.
[dbsrgits/SQL-Translator.git] / t / 12header_comment.t
CommitLineData
631aafb6 1#!/usr/bin/perl
2# vim: set ft=perl:
3
4use Test::More;
5use SQL::Translator::Utils qw($DEFAULT_COMMENT header_comment);
6
7plan tests => 5;
8
9# Superfluous test, but that's ok
10use_ok("SQL::Translator::Utils");
11
12is($DEFAULT_COMMENT, '-- ', 'default comment');
13like(header_comment("foo"), qr/[-][-] Created by foo/, "Created by...");
14
15my $comm = header_comment("My::Producer",
16 $DEFAULT_COMMENT,
17 "Hi mom!");
18like($comm, qr/[-][-] Created by My::Producer/, 'Multiline header comment...');
19like($comm, qr/[-][-] Hi mom!/, '...with additional junk');