As far as I know "expected" and "actual" are switched in the PHP test cases. That means, that the test cases expect 'rovwsoiv' (which is indeed the correct encryption), while you provide it with 'acosaecs'.
I have seen this issue in multiple katas so far, it might be an issue of PHPtest, but i can't say that for sure.
This comment is hidden because it contains spoiler information about the solution
The author appears to be vacant for the moment (last seen in April), can anyone else approve the translation(s)?
As far as I know "expected" and "actual" are switched in the PHP test cases. That means, that the test cases expect 'rovwsoiv' (which is indeed the correct encryption), while you provide it with 'acosaecs'.
I have seen this issue in multiple katas so far, it might be an issue of PHPtest, but i can't say that for sure.
Thank you, did not think about that. :)
It is fixed now,
true/false
should appear with about 50% each.The random tests will expect only
false
with a probability of 2%, which doesn't look too good when better results are easily achievable.PHP translation kumited - please accept :)
Kumited a PHP translation, including 1k random tests.
Cheers! :)
@Zirgion
Added a PHP-Translation :)
It is the first translation I did, so I would appreciate it if someone would take a look at it.
Cheers!