diff --git a/edg/parts/test_JlcCapacitor.py b/edg/parts/test_JlcCapacitor.py index 9257d287b..edf660b46 100644 --- a/edg/parts/test_JlcCapacitor.py +++ b/edg/parts/test_JlcCapacitor.py @@ -40,7 +40,7 @@ def test_capacitor_part(self) -> None: def test_capacitor_min_package(self) -> None: compiled = ScalaCompiler.compile(JlcCapacitorTestTop, Refinements( - instance_values=[(['dut', 'footprint_area'], Range(4.0, float('inf')))] + instance_values=[(['dut', 'footprint_area'], Range.from_lower(4.0))] )) self.assertEqual(compiled.get_value(['dut', 'fp_footprint']), 'Capacitor_SMD:C_0603_1608Metric') self.assertEqual(compiled.get_value(['dut', 'fp_part']), '0603B103K500NT') diff --git a/edg/parts/test_resistor.py b/edg/parts/test_resistor.py index f8fdaf69e..ea96f5776 100644 --- a/edg/parts/test_resistor.py +++ b/edg/parts/test_resistor.py @@ -56,7 +56,7 @@ def test_non_e12_resistor(self) -> None: def test_min_package(self) -> None: compiled = ScalaCompiler.compile(ResistorTestTop, Refinements( - instance_values=[(['dut', 'footprint_area'], Range(4.0, float('inf')))] + instance_values=[(['dut', 'footprint_area'], Range.from_lower(4.0))] )) self.assertEqual(compiled.get_value(['dut', 'fp_footprint']), 'Resistor_SMD:R_0603_1608Metric') self.assertEqual(compiled.get_value(['dut', 'fp_value']), '1k, 1%, 0.1 W')