-
Notifications
You must be signed in to change notification settings - Fork 17
Return inherited type #14
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
|
|
||
| import test.test_helper | ||
| from zmanim.hebrew_calendar.jewish_calendar import JewishCalendar | ||
| from zmanim.hebrew_calendar.jewish_date import JewishDate | ||
|
|
||
|
|
||
| class TestJewishCalendar(unittest.TestCase): | ||
|
|
@@ -899,3 +900,9 @@ def test_sof_zman_kiddush_levana_between_moldos(self): | |
| expected_time = first_molad + timedelta(microseconds=expected_offset) | ||
| # round for floating microsecond precision inconsistency | ||
| self.assertEqual(calendar.sof_zman_kiddush_levana_between_moldos().toordinal(), expected_time.toordinal()) | ||
|
|
||
| def test_date_arithmetic_returns_inherited_type(self): | ||
| for instance, type in [(JewishCalendar(5783, 1, 1), JewishCalendar), (JewishDate(5783, 1, 1), JewishDate)]: | ||
|
||
| self.assertIsInstance(instance, type) | ||
| instance += timedelta(days=1) | ||
| self.assertIsInstance(instance, type) | ||
Uh oh!
There was an error while loading. Please reload this page.