J
John
Hi,
I am trying to create a test for my module and I would like to know
how to test this:
my $input = [
'123',
'456'];
my $output = [
['1', '2', '3'],
['4', '5', '6']];
I have a method that returns the reference to the array of array after
splitting it.
but when I try to make the test for that:
ok $obj->splitted eq $output;
I get:
not ok 2
# Failed test 2 in Example.t at line 68
How do I check if the values hold by the reference are the same?
Thanks in advance for your help.
John
I am trying to create a test for my module and I would like to know
how to test this:
my $input = [
'123',
'456'];
my $output = [
['1', '2', '3'],
['4', '5', '6']];
I have a method that returns the reference to the array of array after
splitting it.
but when I try to make the test for that:
ok $obj->splitted eq $output;
I get:
not ok 2
# Failed test 2 in Example.t at line 68
How do I check if the values hold by the reference are the same?
Thanks in advance for your help.
John