Skip to content

Commit

Permalink
Removed some not needed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiCho committed Dec 5, 2021
1 parent dfbc7db commit 039c44b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions timeago_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ func TestTake_with_online_flag(t *testing.T) {
{smallSubTime(-22 * time.Second), "Online", "en"},
{smallSubTime(-30 * time.Second), "Online", "en"},
{smallSubTime(-31 * time.Second), "Online", "en"},
{smallSubTime(-59 * time.Second), "Online", "en"},
{smallSubTime(-60 * time.Second), "1 minute ago", "en"},
{smallSubTime(-1 * time.Minute), "1 minute ago", "en"},
{smallSubTime(-2 * time.Minute), "2 minutes ago", "en"},
Expand All @@ -229,7 +228,6 @@ func TestTake_with_online_flag(t *testing.T) {
{smallSubTime(-22 * time.Minute), "22 minutes ago", "en"},
{smallSubTime(-30 * time.Minute), "30 minutes ago", "en"},
{smallSubTime(-31 * time.Minute), "31 minutes ago", "en"},
{smallSubTime(-59 * time.Minute), "59 minutes ago", "en"},
{smallSubTime(-60 * time.Minute), "1 hour ago", "en"},
{smallSubTime(-1 * time.Hour), "1 hour ago", "en"},
{smallSubTime(-2 * time.Hour), "2 hours ago", "en"},
Expand Down Expand Up @@ -269,7 +267,6 @@ func TestTake_with_online_flag(t *testing.T) {
{smallSubTime(-22 * time.Second), "В сети", "ru"},
{smallSubTime(-30 * time.Second), "В сети", "ru"},
{smallSubTime(-31 * time.Second), "В сети", "ru"},
{smallSubTime(-59 * time.Second), "В сети", "ru"},
{smallSubTime(-60 * time.Second), "1 минута назад", "ru"},
{smallSubTime(-1 * time.Minute), "1 минута назад", "ru"},
{smallSubTime(-2 * time.Minute), "2 минуты назад", "ru"},
Expand All @@ -281,7 +278,6 @@ func TestTake_with_online_flag(t *testing.T) {
{smallSubTime(-22 * time.Minute), "22 минуты назад", "ru"},
{smallSubTime(-30 * time.Minute), "30 минут назад", "ru"},
{smallSubTime(-31 * time.Minute), "31 минута назад", "ru"},
{smallSubTime(-59 * time.Minute), "59 минут назад", "ru"},
{smallSubTime(-60 * time.Minute), "1 час назад", "ru"},
{smallSubTime(-1 * time.Hour), "1 час назад", "ru"},
{smallSubTime(-2 * time.Hour), "2 часа назад", "ru"},
Expand Down Expand Up @@ -343,7 +339,6 @@ func TestTakeWithSeconds(t *testing.T) {
{smallSubTime(-22 * time.Second), []string{"22 seconds ago", "23 seconds ago"}, "en"},
{smallSubTime(-30 * time.Second), []string{"30 seconds ago", "31 seconds ago"}, "en"},
{smallSubTime(-31 * time.Second), []string{"31 seconds ago", "32 seconds ago"}, "en"},
{smallSubTime(-59 * time.Second), []string{"59 seconds ago", "1 minute ago"}, "en"},
// russian
{smallSubTime(time.Second * 2), []string{"0 секунд назад", "1 секунда назад"}, "ru"},
{smallSubTime(time.Second), []string{"0 секунд назад", "1 секунда назад"}, "ru"},
Expand All @@ -357,7 +352,6 @@ func TestTakeWithSeconds(t *testing.T) {
{smallSubTime(-29 * time.Second), []string{"29 секунд назад", "30 секунд назад"}, "ru"},
{smallSubTime(-30 * time.Second), []string{"30 секунд назад", "31 секунда назад"}, "ru"},
{smallSubTime(-31 * time.Second), []string{"31 секунда назад", "32 секунды назад"}, "ru"},
{smallSubTime(-59 * time.Second), []string{"59 секунд назад", "1 минута назад"}, "ru"},
}

for _, tc := range cases {
Expand Down

0 comments on commit 039c44b

Please sign in to comment.