8 kyu
Simple Comparison?
6,843Peter Rhodes
Loading description...
Fundamentals
Strings
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.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Too easy even for 8 kyu...
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Missing test cases for
"0"==false
and"1"==true
.Edit: And
[]==0
. But[]!="0"
. While"0"==0
. What's this called? Intransitive? Who woulda thunk it applied to some equality operator?This comment has been hidden.
Yea I agree it is dangerous! My reason for creating the Kata was so that people would understand the difference between
===
and==
.Which is why it's not an 8kyu.
Basic data type manipulations
spells 7kyu. And with the tendency towards disaster, and all the double coercions I see being committed (as in crime, yes), even higher would not be unreasonable.