Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
RDruon committed Mar 4, 2024
1 parent 6526fb0 commit 6bb11e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/base_parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,11 @@ mod tests {

assert_eq!(result, Ok((Param("memused".to_string()), "77991501\n")))
}

#[test]
fn test_param_period() {
let result = param_period("exports").parse("exports.1.2.3.130@o2ib.stats=Y\n");

assert_eq!(result, Ok((Param("exports".to_string()), "1.2.3.130@o2ib.stats=Y\n")))
}
}

0 comments on commit 6bb11e3

Please sign in to comment.