Re: [Module::Build] M::B and version.pm
Status: Beta
Brought to you by:
kwilliams
|
From: David E. W. <da...@ki...> - 2006-02-22 20:27:39
|
On Feb 22, 2006, at 12:21, John Peacock wrote:
> Until M::B includes version object support internally, I don't see
> any better way around it. Currently M::B immediately changes any
> version object into a simple scalar (via numify now). Unless and
> until M::B has a way to keep the version object around for later
> usage, it is going to have to be either numify() *or* stringify()
> (and the latter has significant problems).
Okay, but there does seem to be a conversion problem. Witness this test:
use strict;
use version;
use Test::More tests => 1;
my $v = version->new('0.0.1');
my $nv = version->new($v->numify);
is $nv, $v;
The output:
1..1
not ok 1
# Failed test in /Users/david/bin/try at line 8.
# got: '0.000001'
# expected: 'v0.0.1'
# Looks like you failed 1 test of 1.
Shouldn't they be the same?
Best,
David
|