Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

about_variables.pl, lines 100-102: unsolvable case #16

Open
varnie opened this issue Jan 3, 2014 · 3 comments
Open

about_variables.pl, lines 100-102: unsolvable case #16

varnie opened this issue Jan 3, 2014 · 3 comments

Comments

@varnie
Copy link

varnie commented Jan 3, 2014

my @unsorted = (5, 3, 1, 4, 2);
my @sorted = sort @unsorted;
is ([1, 2, 3, 4, 5], __, 'sort arrays'); # TODO need a better hint here

this case cannot be resolved.

@chorankates
Copy link

hey @varnie, sorry for the slow reply here.. i've been going through the koans again recently trying to clean up some of these issues in the 'solutions' branch - and ended up commenting this test out myself.

how do you feel about using this as the test going forward:

is_deeply([1, 2, 3, 4, 5], \@sorted, 'sort arrays')

@varnie
Copy link
Author

varnie commented Jan 11, 2014

hi! yes, that looks fine.

@chorankates-sfdc
Copy link
Contributor

looks like we had the same issue on line 92:

is (__, ['a', 'b', 'c', 'd'] , 'arrays references can be defined directly with brackets');

not to mention that the intended answer also included an array element 'e', not 'd'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants