2db2f7cc8a3a — Duncan Ross Palmer 1 year, 2 months ago
getHead test
1 files changed, 7 insertions(+), 1 deletions(-)

M t/raw2c.pl
M t/raw2c.pl +7 -1
@@ 10,7 10,7 @@ use Test::Output;
 require '../bin/raw2c';
 
 sub main {
-	plan tests => 2;
+	plan tests => 3;
 
 	my $sut = Main->new();
 

          
@@ 25,6 25,12 @@ sub main {
 		"source_file is a new C file to write which will contain the binary as a raw array.\n"
 	, 'syntax';
 
+	is(
+		$sut->getHead(),
+		"/*\n  This file was autogenerated by raw2c, by Duncan Ross Palmer.\n  Visit http://www.daybologic.co.uk\n*/\n\n",
+		'getHead'
+	);
+
 	return EXIT_SUCCESS;
 }