File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
crates/types/src/primitives Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -659,25 +659,4 @@ mod tests {
659
659
let formatted = format ! ( "{:?}" , ts. 0 ) ;
660
660
assert ! ( !formatted. contains( "789Z" ) ) ; // Should not have nanosecond precision
661
661
}
662
-
663
- #[ test]
664
- fn test_now_timestamp_precision ( ) {
665
- let ts = BlockTimestamp :: now ( ) ;
666
-
667
- // Get the string representation
668
- let formatted = format ! ( "{:?}" , ts. 0 ) ;
669
-
670
- // Count the decimal places after the dot and before Z
671
- let decimal_places = formatted
672
- . split ( '.' )
673
- . nth ( 1 )
674
- . map ( |s| s. trim_end_matches ( 'Z' ) . len ( ) )
675
- . unwrap_or ( 0 ) ;
676
-
677
- // Should have exactly 6 decimal places (microsecond precision)
678
- assert_eq ! (
679
- decimal_places, 6 ,
680
- "Timestamp should have microsecond precision (6 decimal places)"
681
- ) ;
682
- }
683
662
}
You can’t perform that action at this time.
0 commit comments