Skip to content

Commit

Permalink
test_strand__5p_extension_reverse_default_relative_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
UnHumbleBen committed May 2, 2022
1 parent 4c459ea commit 0941030
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/scadnano_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ def test_strand__3p_extension_reverse_default_relative_offset(self) -> None:
assert isinstance(ext, sc.Extension)
self.assertEqual((-1, 1), ext.relative_offset)

def test_strand__5p_extension_reverse_default_relative_offset(self) -> None:
design = self.design_6helix
design.draw_strand(0, 10).extension(5).to(0)

ext = design.strands[0].domains[0]
assert isinstance(ext, sc.Extension)
self.assertEqual((1, 1), ext.relative_offset)

def test_strand__update_to_after_5p_extension_ok(self) -> None:
design = self.design_6helix
sb = design.draw_strand(0, 0)
Expand Down

0 comments on commit 0941030

Please sign in to comment.