Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks for your katas, always makes me thinking hard
For me there was a problem with random test cases. 3-4 tests failed because of mismatch like
0.25 should equal 0.24
,0.79 should equal 0.8
and0.46 should equal 0.47
(these are errors from single test run). When I copied code from accepted solution same problem persisted. Seems like random test cases in such katas isn't that good idea.Please can you stop using word
simple
in descriptions to your katas?That is a bit annoying, especially for beginners, who don't perceive these tasks as simple. Thank you
Please fix secod test of
Rows
test case.Rows
should have 63 rows (1 Passed, 0 Failed) # this passed
should should return the expected results
✘ expected true to respond to 'true?' or perhaps you meant 'be true' or 'be_truthy' # this is failed
Despite my code is identical to accepted solutions, error still appears.
Also noticed similar behavior in 2 other katas of yours with exactly same error:
expected true to respond to 'true?' or perhaps you meant 'be true' or 'be_truthy'
Same to me, when I looked into solutions, I've found exatcly same query as mine, but still get error in
Rows
test case, here it is:Rows should have 63 rows (1 Passed, 0 Failed) should should return the expected results ✘ expected true to respond to
true?or perhaps you meant "be true" or "be_truthy"
Also had the same situation in 2 other katas from this author
This comment is hidden because it contains spoiler information about the solution
@g964, I haven't asked you about examples of other katas, advices or reviews.
I'm asking you to add descriptive error messages to simplify life of other people.
Please follow my advice, because if you'll get real programming job, people will be thankful that you make things readable and self-descriptive.
If you are not going to do this just say it. No need for stuff like you've wrote above.
@g964, don't you think it should be by default? It do not resolve the issue
Please make more descriptive error messages,
True should equal False
gives no understading what is wrongdone
Second test in Python version pass in example test cases, but gives error when I submit it
4th test in Python says
2 should equal 1
what does it mean?
# Stop codon
'UAA':'Stop', 'UGA':'Stop', 'UAG':'Stop'
This is preloaded in Acid dict and gives error in Python version, when set to empty strings - all tests pass
Test.it('Single upgrade')
marine = Marine(10, 1)
Test.assert_equals(Marine_weapon_upgrade(marine).damage, 11)
Test.assert_equals(Marine_weapon_upgrade(marine).damage, 11)
Seems like second test is incorrect, or is it intentional?
Other tests have only singe assertion.
@asmgf, @Unnamed Both done, thank you for suggestions
Loading more items...