Lines Matching refs:assert_eq
279 assert_eq!(dt.round_subsecs(10), dt); in test_round_subsecs()
280 assert_eq!(dt.round_subsecs(9), dt); in test_round_subsecs()
281 assert_eq!(dt.round_subsecs(8).nanosecond(), 084_660_680); in test_round_subsecs()
282 assert_eq!(dt.round_subsecs(7).nanosecond(), 084_660_700); in test_round_subsecs()
283 assert_eq!(dt.round_subsecs(6).nanosecond(), 084_661_000); in test_round_subsecs()
284 assert_eq!(dt.round_subsecs(5).nanosecond(), 084_660_000); in test_round_subsecs()
285 assert_eq!(dt.round_subsecs(4).nanosecond(), 084_700_000); in test_round_subsecs()
286 assert_eq!(dt.round_subsecs(3).nanosecond(), 085_000_000); in test_round_subsecs()
287 assert_eq!(dt.round_subsecs(2).nanosecond(), 080_000_000); in test_round_subsecs()
288 assert_eq!(dt.round_subsecs(1).nanosecond(), 100_000_000); in test_round_subsecs()
290 assert_eq!(dt.round_subsecs(0).nanosecond(), 0); in test_round_subsecs()
291 assert_eq!(dt.round_subsecs(0).second(), 13); in test_round_subsecs()
294 assert_eq!(dt.round_subsecs(9), dt); in test_round_subsecs()
295 assert_eq!(dt.round_subsecs(4), dt); in test_round_subsecs()
296 assert_eq!(dt.round_subsecs(3).nanosecond(), 751_000_000); in test_round_subsecs()
297 assert_eq!(dt.round_subsecs(2).nanosecond(), 750_000_000); in test_round_subsecs()
298 assert_eq!(dt.round_subsecs(1).nanosecond(), 800_000_000); in test_round_subsecs()
300 assert_eq!(dt.round_subsecs(0).nanosecond(), 0); in test_round_subsecs()
301 assert_eq!(dt.round_subsecs(0).second(), 28); in test_round_subsecs()
307 assert_eq!(dt.round_subsecs(9), dt); in test_round_leap_nanos()
308 assert_eq!(dt.round_subsecs(4), dt); in test_round_leap_nanos()
309 assert_eq!(dt.round_subsecs(2).nanosecond(), 1_750_000_000); in test_round_leap_nanos()
310 assert_eq!(dt.round_subsecs(1).nanosecond(), 1_800_000_000); in test_round_leap_nanos()
311 assert_eq!(dt.round_subsecs(1).second(), 59); in test_round_leap_nanos()
313 assert_eq!(dt.round_subsecs(0).nanosecond(), 0); in test_round_leap_nanos()
314 assert_eq!(dt.round_subsecs(0).second(), 0); in test_round_leap_nanos()
322 assert_eq!(dt.trunc_subsecs(10), dt); in test_trunc_subsecs()
323 assert_eq!(dt.trunc_subsecs(9), dt); in test_trunc_subsecs()
324 assert_eq!(dt.trunc_subsecs(8).nanosecond(), 084_660_680); in test_trunc_subsecs()
325 assert_eq!(dt.trunc_subsecs(7).nanosecond(), 084_660_600); in test_trunc_subsecs()
326 assert_eq!(dt.trunc_subsecs(6).nanosecond(), 084_660_000); in test_trunc_subsecs()
327 assert_eq!(dt.trunc_subsecs(5).nanosecond(), 084_660_000); in test_trunc_subsecs()
328 assert_eq!(dt.trunc_subsecs(4).nanosecond(), 084_600_000); in test_trunc_subsecs()
329 assert_eq!(dt.trunc_subsecs(3).nanosecond(), 084_000_000); in test_trunc_subsecs()
330 assert_eq!(dt.trunc_subsecs(2).nanosecond(), 080_000_000); in test_trunc_subsecs()
331 assert_eq!(dt.trunc_subsecs(1).nanosecond(), 0); in test_trunc_subsecs()
333 assert_eq!(dt.trunc_subsecs(0).nanosecond(), 0); in test_trunc_subsecs()
334 assert_eq!(dt.trunc_subsecs(0).second(), 13); in test_trunc_subsecs()
337 assert_eq!(dt.trunc_subsecs(9), dt); in test_trunc_subsecs()
338 assert_eq!(dt.trunc_subsecs(4), dt); in test_trunc_subsecs()
339 assert_eq!(dt.trunc_subsecs(3).nanosecond(), 750_000_000); in test_trunc_subsecs()
340 assert_eq!(dt.trunc_subsecs(2).nanosecond(), 750_000_000); in test_trunc_subsecs()
341 assert_eq!(dt.trunc_subsecs(1).nanosecond(), 700_000_000); in test_trunc_subsecs()
343 assert_eq!(dt.trunc_subsecs(0).nanosecond(), 0); in test_trunc_subsecs()
344 assert_eq!(dt.trunc_subsecs(0).second(), 27); in test_trunc_subsecs()
350 assert_eq!(dt.trunc_subsecs(9), dt); in test_trunc_leap_nanos()
351 assert_eq!(dt.trunc_subsecs(4), dt); in test_trunc_leap_nanos()
352 assert_eq!(dt.trunc_subsecs(2).nanosecond(), 1_750_000_000); in test_trunc_leap_nanos()
353 assert_eq!(dt.trunc_subsecs(1).nanosecond(), 1_700_000_000); in test_trunc_leap_nanos()
354 assert_eq!(dt.trunc_subsecs(1).second(), 59); in test_trunc_leap_nanos()
356 assert_eq!(dt.trunc_subsecs(0).nanosecond(), 1_000_000_000); in test_trunc_leap_nanos()
357 assert_eq!(dt.trunc_subsecs(0).second(), 59); in test_trunc_leap_nanos()
364 assert_eq!( in test_duration_round()
371 assert_eq!( in test_duration_round()
377 assert_eq!( in test_duration_round()
382 assert_eq!( in test_duration_round()
386 assert_eq!( in test_duration_round()
390 assert_eq!( in test_duration_round()
394 assert_eq!( in test_duration_round()
403 assert_eq!( in test_duration_round_pre_epoch()
413 assert_eq!( in test_duration_trunc()
420 assert_eq!( in test_duration_trunc()
426 assert_eq!( in test_duration_trunc()
430 assert_eq!( in test_duration_trunc()
434 assert_eq!( in test_duration_trunc()
438 assert_eq!( in test_duration_trunc()
442 assert_eq!( in test_duration_trunc()
451 assert_eq!( in test_duration_trunc_pre_epoch()