1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

Make entries sorting configurable

This commit is contained in:
Frédéric Guillot 2017-12-02 17:04:01 -08:00
parent 453ff64f29
commit 2f1367a8d4
28 changed files with 253 additions and 193 deletions

View file

@ -57,15 +57,15 @@ func TestValidateRange(t *testing.T) {
}
func TestGetOppositeDirection(t *testing.T) {
if GetOppositeDirection("asc") != "desc" {
if OppositeDirection("asc") != "desc" {
t.Errorf(`The opposite direction of "asc" should be "desc"`)
}
if GetOppositeDirection("desc") != "asc" {
if OppositeDirection("desc") != "asc" {
t.Errorf(`The opposite direction of "desc" should be "asc"`)
}
if GetOppositeDirection("invalid") != "asc" {
if OppositeDirection("invalid") != "asc" {
t.Errorf(`An invalid direction should return "asc"`)
}
}