Retired
Thirsty Robot v2 (retired)
Loading description...
Fundamentals
Arrays
Data Types
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
The test case
[ 62.41, 8, 8.3456, 4, 13, 2 ]
gives the following message:This is an "Oh dear" array that has liquor as its first element.
The Description states:
Made some mistakes with the test cases, thanks for the comment!
Issue resolved
Description has some logical inconsistency.
This means that an array that contains only wine or only beer, but also includes liquor (makes no sense because it cannot be) is a "fine" array.
It makes more sense to change it to:
Yes very good point, and thanks for the correction!
Resolved
That is not how you use
Test.expect
.( The correct way involves not using
Test.expect
at all. )Hi, could you elaborate on that at all? My first kata, thanks for the advice!
Do I just need to change to assertEquals?
I could, but I just don't feel like it. Don't take it personal - it isn't.
Please just unpublish this for now, solve more kata, and read the available documentation on creating ( your first ) kata.
Issue resolved