fixed some time ago
EDIT: nevermind
thanks!
Awesome!
The method * of the Array class has two uses:
When its argument is a string (s), its equivalent to self.join(s) (s will separate the values of self)
When it's an integer (n), it returns the concatenation of the array self n times.
This comment is hidden because it contains spoiler information about the solution
Thanks for the feedback, I've fixed the issue.
Forgot to mark as solved :-)
Reversed now.
Obviously not, and test specifically tests that it isn't
Test.assert_equals false, "1\n0".digit?
because naive implementation might accidentally match that.
Nice kata
One problem though, the tests are backwards expected, actual instead of actual, expected making the error reports confusing.
expected, actual
actual, expected
"1\n0" is considered to be a digit?
Loading collection data...
fixed some time ago
EDIT: nevermind
thanks!
Awesome!
The method * of the Array class has two uses:
When its argument is a string (s), its equivalent to self.join(s) (s will separate the values of self)
When it's an integer (n), it returns the concatenation of the array self n times.
This comment is hidden because it contains spoiler information about the solution
Thanks for the feedback, I've fixed the issue.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Forgot to mark as solved :-)
Forgot to mark as solved :-)
Reversed now.
Obviously not, and test specifically tests that it isn't
because naive implementation might accidentally match that.
Nice kata
One problem though, the tests are backwards
expected, actual
instead ofactual, expected
making the error reports confusing."1\n0" is considered to be a digit?
Loading more items...