Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maoueh committed Jul 5, 2023
1 parent 7854dea commit eec3c5f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/block_timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,8 @@ mod tests {
#[test]
fn it_block_timestamp_try_from_key() {
assert_eq!(
BlockTimestamp::from_key("1435708800000"),
timestamp(2015, 07, 01, 00, 00, 00, 000)
);

assert_eq!(
BlockTimestamp::from_key("1669852799999"),
timestamp(2022, 11, 30, 23, 59, 59, 999)
BlockTimestamp::from_key("day:first:20210705"),
timestamp(2021, 07, 05, 00, 00, 00, 000)
);
}

Expand Down

0 comments on commit eec3c5f

Please sign in to comment.