Skip to content

Commit

Permalink
#docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amitgaru2 committed Feb 22, 2024
1 parent df691c2 commit 7b11481
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ def test_reference_dates(self):

def test_random_conversions(self):
for rd_maps in RANDOM_CONVERSION_MAPS:
dt = nepali_datetime.date.from_datetime_date(datetime.date(**rd_maps['ad']))
assert dt == nepali_datetime.date(**rd_maps['bs'])
np_dt = nepali_datetime.date.from_datetime_date(datetime.date(**rd_maps['ad']))
assert np_dt == nepali_datetime.date(**rd_maps['bs'])

dt = nepali_datetime.date.to_datetime_date(nepali_datetime.date(**rd_maps['bs']))
assert dt == datetime.date(**rd_maps['ad'])

0 comments on commit 7b11481

Please sign in to comment.