Skip to content

Commit

Permalink
test_strand__with_relative_offset_on_domain_error and test_strand__wi…
Browse files Browse the repository at this point in the history
…th_relative_offset_on_empty_error
  • Loading branch information
UnHumbleBen committed May 2, 2022
1 parent d2f1afb commit faa0a33
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/scadnano_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faa0a33

Please sign in to comment.