From 4ebdba4325a5d0ac9a20af8a583389c81dff7233 Mon Sep 17 00:00:00 2001 From: Matt Stone Date: Mon, 15 Jul 2024 09:00:13 -0400 Subject: [PATCH] test: add doc --- pybedlite/tests/test_overlap_detector.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pybedlite/tests/test_overlap_detector.py b/pybedlite/tests/test_overlap_detector.py index 4150c3c..ce27b1e 100644 --- a/pybedlite/tests/test_overlap_detector.py +++ b/pybedlite/tests/test_overlap_detector.py @@ -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) @@ -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)