added column names

This commit is contained in:
cpu
2023-12-21 23:14:09 +01:00
parent 4815e61617
commit fa29edafe1
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
# hour:minute date text time date textual representation
# all minutes of an hour # all minutes of an hour
00:00 01-01-2023 Je nula hodín a nula minút, nedeľa, prvého januára 00:00 01-01-2023 Je nula hodín a nula minút, nedeľa, prvého januára
00:01 01-01-2023 Je nula hodín a jedna minúta, nedeľa, prvého januára 00:01 01-01-2023 Je nula hodín a jedna minúta, nedeľa, prvého januára
1 # hour:minute date text time date textual representation
2 # all minutes of an hour
3 00:00 01-01-2023 Je nula hodín a nula minút, nedeľa, prvého januára
4 00:01 01-01-2023 Je nula hodín a jedna minúta, nedeľa, prvého januára

View File

@@ -13,6 +13,7 @@ class TestSlovakDateTimeFormatter(unittest.TestCase):
test_data = [] test_data = []
with open("test_data.tsv") as file: with open("test_data.tsv") as file:
reader = csv.reader(file, delimiter="\t") reader = csv.reader(file, delimiter="\t")
next(reader)
for row in reader: for row in reader:
if row and not row[0].startswith("#"): if row and not row[0].startswith("#"):
test_data.append(row) test_data.append(row)