diff --git a/tests/scadnano_tests.py b/tests/scadnano_tests.py index aa37bf30..2488dd90 100644 --- a/tests/scadnano_tests.py +++ b/tests/scadnano_tests.py @@ -299,6 +299,19 @@ def test_strand__with_relative_offset(self) -> None: self.assertEqual(1, len(design.strands)) self.assertEqual(expected_strand, design.strands[0]) + def test_strand__with_relative_offset_on_domain_error(self) -> None: + design = self.design_6helix + sb = design.draw_strand(0, 0).to(10) + + with self.assertRaises(ValueError): + sb.with_relative_offset((1.1, -1.4)) + + def test_strand__with_relative_offset_on_empty_error(self) -> None: + design = self.design_6helix + sb = design.draw_strand(0, 0) + + with self.assertRaises(ValueError): + sb.with_relative_offset((1.1, -1.4)) def test_strand__0_0_to_10_cross_1_to_5(self) -> None: design = self.design_6helix