# dates_1 = ["1999-12-31"]
# years_1 = get_year_from_date(dates_1)
# print("Testfall 1:")
# print("Erwartete Ausgabe:", ["1999"])
# print("Erhaltene Ausgabe:", years_1)

# # Testfall 2: EDTF-Datum mit Intervall
# dates_2 = ["2000/2005"]
# years_2 = get_year_from_date(dates_2)
# print("\nTestfall 2:")
# print("Erwartete Ausgabe:", ["2000 - 2005"])
# print("Erhaltene Ausgabe:", years_2)

# # # Testfall 3: Ungültiges EDTF-Datum (leere Zeichenfolge)
# dates_3 = [""]
# years_3 = get_year_from_date(dates_3)
# print("\nTestfall 3:")
# print("Erwartete Ausgabe:", ["unknown format"])
# print("Erhaltene Ausgabe:", years_3)

# # Testfall 4: Weitere EDTF-Intervalle
# dates_4 = ["2000/2005", "2010-12-31/2015-01-01", "2020-01/2021-01"]
# years_4 = get_year_from_date(dates_4)
# print("\nTestfall 4:")
# print("Erwartete Ausgabe:", ["2000 - 2005", "2010 - 2015", "2020 - 2021"])
# print("Erhaltene Ausgabe:", years_4)

# # Testfall 5: Weitere EDTF-Intervalle
# dates_5 = ["1991-05"]
# years_5 = get_year_from_date(dates_5)
# print("\nTestfall 5:")
# print("Erwartete Ausgabe:", ["1991"])
# print("Erhaltene Ausgabe:", years_5)

# dates_6 = ["450"]
# years_6 = get_year_from_date(dates_6)
# print("Testfall 6:")
# print("Erwartete Ausgabe:", ["450"])
# print("Erhaltene Ausgabe:", years_6)

# dates_7 = ["450/455"]
# years_7 = get_year_from_date(dates_7)
# print("Testfall 6:")
# print("Erwartete Ausgabe:", ["450/455"])
# print("Erhaltene Ausgabe:", years_7)

# dates_8 = ["-450"]
# years_8 = get_year_from_date(dates_8)
# print("Testfall 8:")
# print("Erwartete Ausgabe:", ["-450"])
# print("Erhaltene Ausgabe:", years_8)

# dates_9 = ["-450/-445"]
# years_9 = get_year_from_date(dates_9)
# print("Testfall 9:")
# print("Erwartete Ausgabe:", ["-450/-445"])
# print("Erhaltene Ausgabe:", years_9)



# def main():
#     # Testfälle für format_authors
#     test_single_author()
#     test_two_authors()
#     test_three_authors()
#     test_more_than_three_authors()

# def test_single_author():
#     print("Test Single Author:")
#     author = AuthorityDTO(person_surname="Doe", person_first_name="John")
#     authors = [author]
#     formatted_authors = format_authors(authors)
#     print("Formatted Authors:", formatted_authors)

# def test_two_authors():
#     print("Test Two Authors:")
#     author1 = AuthorityDTO(person_surname="Doe", person_first_name="John")
#     author2 = AuthorityDTO(person_surname="Smith", person_first_name="Alice")
#     authors = [author1, author2]
#     formatted_authors = format_authors(authors)
#     print("Formatted Authors:", formatted_authors)

# def test_three_authors():
#     print("Test Three Authors:")
#     author1 = AuthorityDTO(person_surname="Doe", person_first_name="John")
#     author2 = AuthorityDTO(person_surname="Smith", person_first_name="Alice")
#     author3 = AuthorityDTO(person_surname="Johnson", person_first_name="Bob")
#     authors = [author1, author2, author3]
#     formatted_authors = format_authors(authors)
#     print("Formatted Authors:", formatted_authors)

# def test_more_than_three_authors():
#     print("Test More Than Three Authors:")
#     author1 = AuthorityDTO(person_surname="Doe", person_first_name="John")
#     author2 = AuthorityDTO(person_surname="Smith", person_first_name="Alice")
#     author3 = AuthorityDTO(person_surname="Johnson", person_first_name="Bob")
#     author4 = AuthorityDTO(person_surname="Williams", person_first_name="Emma")
#     authors = [author1, author2, author3, author4]
#     formatted_authors = format_authors(authors)
#     print("Formatted Authors:", formatted_authors)




