1
0
This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
git-time-tracker/test/test_util.py
Jon Michael Aanes 41e574c971
All checks were successful
Test Python / Test (push) Successful in 22s
Ruff
2024-08-25 23:41:42 +02:00

18 lines
398 B
Python

import git_time_tracker
def test_year_ranges_1():
assert git_time_tracker.fmt_year_ranges([1, 2, 3]) == '1-3'
def test_year_ranges_2():
assert git_time_tracker.fmt_year_ranges([1, 3]) == '1,3'
def test_year_ranges_3():
assert git_time_tracker.fmt_year_ranges([1, 2, 4]) == '1-2,4'
def test_year_ranges_4():
assert git_time_tracker.fmt_year_ranges([1, 2, 4, 5]) == '1-2,4-5'