Skip to content

Commit

Permalink
Update utils.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-q committed Jul 12, 2023
1 parent fc4ebb2 commit 901a58a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ pub fn read_sizes(input: &str) -> BTreeMap<String, i32> {
}

/// ```
/// let sizes = intspan::read_first_column("tests/spanr/S288c.chr.sizes");
/// assert_eq!(sizes.len(), 16);
/// assert_eq!(*sizes.get(1).unwrap(), "II");
/// assert_eq!(*sizes.get(15).unwrap(), "XVI");
/// let chrs = intspan::read_first_column("tests/spanr/S288c.chr.sizes");
/// assert_eq!(chrs.len(), 16);
/// assert_eq!(*chrs.get(1).unwrap(), "II");
/// assert_eq!(*chrs.get(15).unwrap(), "XVI");
/// ```
pub fn read_first_column(input: &str) -> Vec<String> {
let reader = reader(input);
Expand Down

0 comments on commit 901a58a

Please sign in to comment.