Skip to content

Commit

Permalink
Remove scan::test_timezone_name_skip and scan::test_equals
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Jul 25, 2023
1 parent c98ade3 commit f5ea3ec
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/format/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,8 @@ enum CommentState {
#[cfg(test)]
mod tests {
use super::{
comment_2822, consume_colon_maybe, equals, nanosecond, nanosecond_fixed, s_next,
short_or_long_month0, short_or_long_weekday, space, timezone_name_skip,
timezone_offset_2822, trim1,
comment_2822, consume_colon_maybe, nanosecond, nanosecond_fixed, s_next,
short_or_long_month0, short_or_long_weekday, space, timezone_offset_2822, trim1,
};
use crate::format::{INVALID, TOO_SHORT};
use crate::Weekday;
Expand Down Expand Up @@ -451,11 +450,6 @@ mod tests {
assert_eq!(space("a "), Err(INVALID));
}

#[test]
fn test_timezone_name_skip() {
assert!(timezone_name_skip("\r").is_ok());
}

#[test]
fn test_timezone_offset_2822() {
assert_eq!(timezone_offset_2822("cSt").unwrap(), ("", Some(-21600)));
Expand Down Expand Up @@ -494,13 +488,6 @@ mod tests {
assert_eq!(nanosecond("8").unwrap(), ("", 800000000));
}

#[test]
fn test_equals() {
assert!(equals(b"\x5b", "["));
assert!(!equals(b"\x0a\x5b\x4b", "[K"));
assert!(!equals(b"\x00", ""));
}

#[test]
fn test_s_next() {
assert_eq!(s_next(""), "");
Expand Down

0 comments on commit f5ea3ec

Please sign in to comment.