Skip to content

Commit

Permalink
fix: add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dracarys18 committed Nov 13, 2024
1 parent a03c61d commit 47c89d5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scylla-cql/src/types/deserialize/value_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,20 @@ fn test_date_time_types() {
&time_03::OffsetDateTime::from_unix_timestamp(0xdead_cafe).unwrap(),
&mut Bytes::new(),
);

#[cfg(feature = "time-03")]
assert_ser_de_identity(
&ColumnType::Timestamp,
&time_03::PrimitiveDateTime::new(
time_03::OffsetDateTime::from_unix_timestamp(0xdead_cafe)
.unwrap()
.date(),
time_03::OffsetDateTime::from_unix_timestamp(0xdead_cafe)
.unwrap()
.time(),
),
&mut Bytes::new(),
);
}

#[test]
Expand Down

0 comments on commit 47c89d5

Please sign in to comment.