Commits

Palmer, 2E0EOL committed c852773 Draft

Support VERSION for package.

Comments (0)

Files changed (2)

lib/Daybo/ConfReader.pm

 
 package Daybo::ConfReader;
 use Data::Dumper;
+
+our $VERSION = '2.1.0'; # Keep in sync with debian/changelog
 use constant DEFAULT_SECTION => ('DEFAULT');
 #----------------------------------------------------------------------------
 =item new
+#!/usr/bin/perl -w
+
+use Daybo::ConfReader;
+package main;
+use Test::More tests => 1;
+
+use constant CHECK_PKG => 'Daybo::ConfReader';
+use constant CHECK_VER => '2.1.0';
+
+is(
+	$Daybo::ConfReader::VERSION,
+	CHECK_VER(),
+	sprintf(
+		'%s::VERSION is \'%s\'',
+		CHECK_PKG(),
+		CHECK_VER()
+	)
+);