()
| 60 | |
| 61 | |
| 62 | def test_floor_divide(): |
| 63 | it = pendulum.duration(days=2, seconds=34, microseconds=522222) |
| 64 | mul = it // 2 |
| 65 | |
| 66 | assert isinstance(mul, pendulum.Duration) |
| 67 | assert_duration(mul, 0, 0, 0, 1, 0, 0, 17, 261111) |
| 68 | |
| 69 | it = pendulum.duration(days=2, seconds=35, microseconds=522222) |
| 70 | mul = it // 3 |
| 71 | |
| 72 | assert isinstance(mul, pendulum.Duration) |
| 73 | assert_duration(mul, 0, 0, 0, 0, 16, 0, 11, 840740) |
| 74 | |
| 75 | it = pendulum.duration(years=2, months=4, days=2, seconds=34, microseconds=522222) |
| 76 | mul = it // 2 |
| 77 | |
| 78 | assert isinstance(mul, pendulum.Duration) |
| 79 | assert_duration(mul, 1, 2, 0, 1, 0, 0, 17, 261111) |
| 80 | |
| 81 | it = pendulum.duration(years=2, months=4, days=2, seconds=35, microseconds=522222) |
| 82 | mul = it // 3 |
| 83 | |
| 84 | assert isinstance(mul, pendulum.Duration) |
| 85 | assert_duration(mul, 0, 1, 0, 0, 16, 0, 11, 840740) |
nothing calls this directly
no test coverage detected
searching dependent graphs…