The description has been updated to be language-agnostic
Also, while translating, I noticed that the random tests in Python (not sure about other languages) limit the gas value to 1000 instead of 50,000 as specified in the description. Not a major issue, but someone might want to fix that.
Maybe add the three strings in the solution setup. JS example:
function goodVsEvil (good,evil) {
// return "Battle Result: Evil eradicates all trace of Good";
// return "Battle Result: No victor on this battle field";
// return "Battle Result: Good triumphs over Evil";
}
I think the values used to perform each of the test cases should have been added so that you would at least know why your code didn't pass a particular testcase.
Haskell translation
Also, while translating, I noticed that the random tests in Python (not sure about other languages) limit the gas value to
1000
instead of50,000
as specified in the description. Not a major issue, but someone might want to fix that.Translated Typescript from JavaScript, spent some time organizing the tests as well. could fork JS and add those changes there as well
Maybe add the three strings in the solution setup. JS example:
This comment is hidden because it contains spoiler information about the solution
Unspecified AssertionError
The assert libary has problem?
please change to chai
Updated JS version with randomized tests
rust version with (pseudo-randomized tests
I am running into an error because in the random test 16 digit binaries appear like this one: 1110110000000100
This comment is hidden because it contains spoiler information about the solution
I think the values used to perform each of the test cases should have been added so that you would at least know why your code didn't pass a particular testcase.
This comment is hidden because it contains spoiler information about the solution
Coffeescript
Crystal
(author inactive)
Rust translation kumited! :-)
Julia translation
Loading more items...