1// Take a look at the license at the top of the repository in the LICENSE file.
2
3#[cfg(test)]
4mod tests {
5 use crate::{prelude::*, DateTime};
6
7 #[test]
8 fn test_value() {
9 let dt1 = DateTime::now_utc().unwrap();
10 let v = dt1.to_value();
11 let dt2 = v.get::<&DateTime>().unwrap();
12
13 assert_eq!(dt1.as_ptr(), dt2.as_ptr());
14 }
15}
16