| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | 1 | import pytest |
|
| 30 | 1 | def test_count_step_neg1(today_as_decimaldate_int) -> None: |
|
| 31 | # GIVEN |
||
| 32 | 1 | step = -1 |
|
| 33 | # WHEN |
||
| 34 | 1 | it = iter(DecimalDate.count(step=step)) |
|
| 35 | # THEN |
||
| 36 | 1 | assert next(it).as_int() == today_as_decimaldate_int |
|
| 37 | 1 | assert ( |
|
| 38 | next(it).as_int() == DecimalDate(today_as_decimaldate_int).next(step).as_int() |
||
| 39 | ) |
||
| 64 |