diff --git a/tests/test_conversions.py b/tests/test_conversions.py index a5bce56..b8c4da2 100644 --- a/tests/test_conversions.py +++ b/tests/test_conversions.py @@ -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'])