pretty_assert_eq!(ClockSvg::new(Height(6930000)).second, 180.0); pretty_assert_eq!(ClockSvg::new(Height(6930504)).second, 270.0); } #[test] fn minute() { pretty_assert_eq!(ClockSvg::new(Height(0)).minute, 0.0); pretty_assert_eq!(ClockSvg::new(Height(52500)).minute, 90.0); pretty_assert_eq!(ClockSvg::new(Height(105000)).minute, 180.0); pretty_assert_eq!(ClockSvg::new(Height(157500)).minute, 270.0); pretty_assert_eq!(ClockSvg::new(Height(210000)).minute, 0.0); pretty_assert_eq!(ClockSvg::new(Height(6930000)).minute, 0.0); pretty_assert_eq!(ClockSvg::new(Height(6930001)).minute, 0.0); } #[test] fn hour() { pretty_assert_eq!(ClockSvg::new(Height(0)).hour, 0.0); pretty_assert_eq!(ClockSvg::new(Height(1732500)).hour, 90.0); pretty_assert_eq!(ClockSvg::new(Height(3465000)).hour, 180.0); pretty_assert_eq!(ClockSvg::new(Height(5197500)).hour, 270.0); pretty_assert_eq!(ClockSvg::new(Height(6930000)).hour, 0.0); pretty_assert_eq!(ClockSvg::new(Height(6930001)).hour, 0.0);
Inscription number 44,981,423
Genesis block 819,057
File type text
File size 1.03 KB
Creation date Nov 30,2023 1:16 am