7 kyu
Thinkful - String Drills: Areacode extractor
1,817 of 2,382Grae-Drake
Loading description...
Strings
Regular Expressions
Fundamentals
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.
python new test framework + random tests
.
nice kata
Not enough tests & need random ones.
Still does
added in python
I pass the basic tests, but I don't pass the 'more tests': 'ou' should be '818', I am quite confused
print the input to the console, to see what you're doing.
I am having the same issue.
My code: def area_code(text): # Your code goes here return text[-13:-10]
area_code("The supplier's phone number is (555) 867-5309")
The position of the area code in the string is not constant. Your code won't work.
This comment has been hidden.
Javascript translation kumited. Added some random tests too.
This comment has been hidden.
Not that I can tell, @suic, but I don't know Haskell :(
What's the best way for me to handle translations for languages I don't know? Should I approve unless there's an obvious problem?
Yes, that's the usual way when you don't know the language. If there's any issue with Haskell translation @kazk with find and report it (thanks kazk :)) and I'll fix it.
If a translator doesn't reposnd, the best way to let him know is to post under the translation annoucement.
Thanks,
suic
Cool, approved :)
Thanks :)
@suic, aren't "Test Cases" and "Example Test Cases" swapped? "Show Kata Test Cases" above shows example tests and "Example Tests" in trainer has full test cases including random tests.
Thanks, it's fixed now. Wrong copy paste :/ Regards, suic
This comment has been hidden.