Skip to content

Commit 6fd0ff3

Browse files
committed
Add a test for the issue in #4
1 parent 0fda84f commit 6fd0ff3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py2bitTest/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ def testBases(self):
4141
assert(tb.bases("chr1", 24, 74) == {'A': 0.12, 'C': 0.12, 'T': 0.12, 'G': 0.12})
4242
assert(tb.bases("chr1", 24, 74, False) == {'A': 6, 'C': 6, 'T': 6, 'G': 6})
4343
tb.close()
44+
45+
def testSequence(self):
46+
tb = py2bit.open(self.fname, True)
47+
assert(tb.sequence("chr1", 1, 3) == "NN")
48+
assert(tb.sequence("chr1", 1, 2) == "N")

0 commit comments

Comments
 (0)