From 884628fac27b19c7cd4390e5ff565be4d04dd874 Mon Sep 17 00:00:00 2001 From: iopapamanoglou Date: Mon, 2 Sep 2024 11:50:31 +0200 Subject: [PATCH] Add test --- test/core/test_parameters.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/core/test_parameters.py b/test/core/test_parameters.py index f7bf74bf..428d0f5b 100644 --- a/test/core/test_parameters.py +++ b/test/core/test_parameters.py @@ -359,6 +359,9 @@ def __preinit__(self) -> None: r = r.get_most_narrow() self.assertIsInstance(r, Range, f"{type(r)}") + def test_units(self): + self.assertEqual(Constant(1e-9 * P.F), 1 * P.nF) + if __name__ == "__main__": unittest.main()