Skip to content

Commit

Permalink
set roundtrip test as todo
Browse files Browse the repository at this point in the history
They can be worked on under issue #657

Updates #630
  • Loading branch information
shawnlaffan committed Feb 21, 2017
1 parent 4e26ac9 commit ebd3a60
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions t/32-BootstrapBlock.t
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,15 @@ sub test_roundtrip {
my $encoded = $booter->encode (include_colour => 1);

my $expected
= '[&!color=#002244,aref={1,3,5,7},href={a,1,b,2},'
= '[&!color=#002244,aref={1,3,5},href={a,1,b,2},'
. 'other=blort,other2=blert15]';
is ($encoded, $expected, 'encoded expected string');

my $booter2 = Biodiverse::TreeNode::BootstrapBlock->new;
$booter2->decode(raw_bootstrap => $encoded);
is_deeply ($booter2, $booter, 'encode-decode roundtrip passed')
TODO: {
my $booter2 = Biodiverse::TreeNode::BootstrapBlock->new;
$booter2->decode(raw_bootstrap => $encoded);
local $TODO = 'importation not yet implemented';
is_deeply ($booter2, $booter, 'encode-decode roundtrip passed')
}
}

0 comments on commit ebd3a60

Please sign in to comment.