From 7b114817010aa3f13e9d5855cf2210d23295c977 Mon Sep 17 00:00:00 2001 From: Amit Garu Date: Thu, 22 Feb 2024 09:56:42 -0700 Subject: [PATCH] #docs --- tests/test_conversions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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'])