Skip to content

Commit

Permalink
Rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Oct 25, 2024
1 parent c1a362b commit 15ac7ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ mod tests {
}

#[test]
fn test_generalizedtime() {
fn test_x509_generalizedtime() {
assert_parses::<X509GeneralizedTime>(&[
(
Ok(X509GeneralizedTime::new(DateTime::new(2010, 1, 2, 3, 4, 5).unwrap()).unwrap()),
Expand Down Expand Up @@ -1560,7 +1560,7 @@ mod tests {
Err(ParseError::new(ParseErrorKind::InvalidValue)),
b"\x18\x1019000228030405Z ",
),
// Tests for fractional seconds, which we currently don't support
// Tests for fractional seconds which are forbidden
(
Err(ParseError::new(ParseErrorKind::InvalidValue)),
b"\x18\x1620100102030405.123456Z",
Expand Down Expand Up @@ -1589,7 +1589,7 @@ mod tests {
}

#[test]
fn test_generalized_time_fractional() {
fn test_generalized_time() {
assert_parses::<GeneralizedTime>(&[
(
// General case
Expand Down
6 changes: 3 additions & 3 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2119,12 +2119,12 @@ mod tests {
}

#[test]
fn test_generalized_time_new() {
fn test_x509_generalized_time_new() {
assert!(X509GeneralizedTime::new(DateTime::new(2015, 6, 30, 23, 59, 59).unwrap()).is_ok());
}

#[test]
fn test_generalized_time_fractional_new() {
fn test_generalized_time_new() {
assert!(
GeneralizedTime::new(DateTime::new(2015, 6, 30, 23, 59, 59).unwrap(), Some(1234))
.is_ok()
Expand All @@ -2140,7 +2140,7 @@ mod tests {
}

#[test]
fn test_generalized_time_fractional_partial_ord() {
fn test_generalized_time_partial_ord() {
let point =
GeneralizedTime::new(DateTime::new(2015, 6, 30, 23, 59, 59).unwrap(), Some(1234))
.unwrap();
Expand Down
4 changes: 2 additions & 2 deletions src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ mod tests {
}

#[test]
fn test_write_generalizedtime_x509() {
fn test_write_x509_generalizedtime() {
assert_writes(&[
(
X509GeneralizedTime::new(DateTime::new(1991, 5, 6, 23, 45, 40).unwrap()).unwrap(),
Expand All @@ -571,7 +571,7 @@ mod tests {
}

#[test]
fn test_write_generalizedtime_fractional() {
fn test_write_generalizedtime() {
assert_writes(&[
(
GeneralizedTime::new(DateTime::new(1991, 5, 6, 23, 45, 40).unwrap(), Some(1_234))
Expand Down

0 comments on commit 15ac7ea

Please sign in to comment.