<div dir="ltr">Thank you Grant, your reply was the hint I was needed ( and the second coffee is starting to kick in ... )<div>I was only looking at the original array prior to calling set().<br><div><br></div><div>My set() method is a wrapper around Statistics::R->set() which calls a _quote() (<a href="https://metacpan.org/source/FANGLY/Statistics-R-0.34/lib/Statistics/R.pm"> line 574</a>) method on each element of the array thus modifying the original array and messing with my test. Not sure it is good practice but it is implemented that way and at least that is a mystery solved. Now lets make that test pass ... </div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 28, 2016 at 12:36 PM, Grant McLean <span dir="ltr"><<a href="mailto:grant@mclean.net.nz" target="_blank">grant@mclean.net.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 2016-10-28 at 11:40 +1300, Florent Mara wrote:<br>
> Since I am here, maybe somebody could explain me what I am doing wrong<br>
> here:<br>
><br>
> my $cust_levels = ['Inner Span', 'End Span'];<br>
> my $mirror = $object->set('array', $cust_levels); # Sets a mirroring variable in a different object.<br>
> is($mirror->[0], $cust_levels->[0], 'Got the expected array element');<br>
><br>
> Results in<br>
> #   Failed test 'Got the expected array element'<br>
> #          got: 'Inner Span'<br>
> #     expected: '"Inner Span"'<br>
<br>
</span>Wow, that is odd.  It seems to be telling us that somewhere in the<br>
course of doing its job, the set method successfully copied the values<br>
from $cust_levels and then corrupted the source data by adding double<br>
quotes.<br>
<br>
Be sure to let us know what it was when you work it out :-)<br>
<br>
Cheers<br>
<div class="HOEnZb"><div class="h5">Grant<br>
<br>
<br>
______________________________<wbr>_________________<br>
Wellington-pm mailing list<br>
<a href="mailto:Wellington-pm@pm.org">Wellington-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/wellington-pm" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/<wbr>listinfo/wellington-pm</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="https://s3-ap-southeast-2.amazonaws.com/regenpublic/NRG531991.png" width="420" height="101"><br></div></div></div></div></div></div></div></div></div></div>
</div>