Skip to content

Commit

Permalink
Add more Armenian tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ElahehAx committed Mar 17, 2022
1 parent ec98f1b commit c0057fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -3015,36 +3015,42 @@ def test_format_timeframe(self):
assert self.locale._format_timeframe("second", 1) == "վայրկյան"
assert self.locale._format_timeframe("seconds", -3) == "3 վայրկյան"
assert self.locale._format_timeframe("seconds", 3) == "3 վայրկյան"
assert self.locale._format_timeframe("seconds", 30) == "30 վայրկյան"

# Minute(s)
assert self.locale._format_timeframe("minute", -1) == "րոպե"
assert self.locale._format_timeframe("minute", 1) == "րոպե"
assert self.locale._format_timeframe("minutes", -4) == "4 րոպե"
assert self.locale._format_timeframe("minutes", 4) == "4 րոպե"
assert self.locale._format_timeframe("minutes", 40) == "40 րոպե"

# Hour(s)
assert self.locale._format_timeframe("hour", -1) == "ժամ"
assert self.locale._format_timeframe("hour", 1) == "ժամ"
assert self.locale._format_timeframe("hours", -23) == "23 ժամ"
assert self.locale._format_timeframe("hours", 23) == "23 ժամ"
assert self.locale._format_timeframe("hours", 23) == "23 ժամ"

# Day(s)
assert self.locale._format_timeframe("day", -1) == "օր"
assert self.locale._format_timeframe("day", 1) == "օր"
assert self.locale._format_timeframe("days", -12) == "12 օր"
assert self.locale._format_timeframe("days", 12) == "12 օր"
assert self.locale._format_timeframe("days", 12) == "12 օր"

# Month(s)
assert self.locale._format_timeframe("month", -1) == "ամիս"
assert self.locale._format_timeframe("month", 1) == "ամիս"
assert self.locale._format_timeframe("months", -2) == "2 ամիս"
assert self.locale._format_timeframe("months", 2) == "2 ամիս"
assert self.locale._format_timeframe("months", 11) == "11 ամիս"

# Year(s)
assert self.locale._format_timeframe("year", -1) == "տարին"
assert self.locale._format_timeframe("year", 1) == "տարին"
assert self.locale._format_timeframe("years", -2) == "2 տարին"
assert self.locale._format_timeframe("years", 2) == "2 տարին"
assert self.locale._format_timeframe("years", 12) == "12 տարին"

def test_weekday(self):
dt = arrow.Arrow(2015, 4, 11, 17, 30, 00)
Expand Down

0 comments on commit c0057fa

Please sign in to comment.