Skip to content

Commit

Permalink
test: add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed Jul 15, 2024
1 parent 73be62b commit 4ebdba4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pybedlite/tests/test_overlap_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ def test_construction_from_interval(bed_records: List[BedRecord]) -> None:
def test_construction_from_ucsc() -> None:
"""
`Interval.from_ucsc()` should convert a UCSC position-formatted string to an `Interval`.
"""
The position-formatted string should be one-based fully-closed, and the `Interval` should be
zero-based half-open.
"""
assert Interval.from_ucsc("chr1:101-200") == Interval("chr1", 100, 200)


Expand All @@ -216,5 +218,4 @@ def test_construction_from_ucsc_other_contigs(contig: str) -> None:
"""
`Interval.from_ucsc()` should accomodate non-human, decoy, custom, and other contig names.
"""

assert Interval.from_ucsc(f"{contig}:101-200") == Interval(contig, 100, 200)

0 comments on commit 4ebdba4

Please sign in to comment.