-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename weekday to workweek #313
Conversation
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #313 +/- ##
==========================================
+ Coverage 94.63% 94.63% +<.01%
==========================================
Files 100 102 +2
Lines 5780 5800 +20
==========================================
+ Hits 5470 5489 +19
- Misses 310 311 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @kaphacius, thank you for submitting this PR but I disagree with changing the name on this one. I believe weekday is the proper terminology
Thank you @kaphacius, as mentioned in Apple's documentation, weekday refers to any day in the week, including weekend, which might be confusing here. Personally I've never heard the word workweek before, but English is not my main language 😃 |
I see, after looking at the documentation I wouldn't be opposed to |
done, |
@@ -275,9 +275,9 @@ final class DateExtensionsTests: XCTestCase { | |||
XCTAssertEqual(date.isInWeekend, Calendar.current.isDateInWeekend(date)) | |||
} | |||
|
|||
func testIsInWeekday() { | |||
func testisWorkday() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaphacius Could you please rename this to testIsWorkday
to keep consistency with other tests :)
Checklist
As per this wikipedia page
Another variant is
isAWorkday
orisAWeekday
, but I thinkisInWorkweek
works better withisInWeekend