diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-12-02 17:04:01 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-12-02 17:04:01 -0800 |
commit | 2f1367a8d4c33e7c6ba459cfc6756e079c7a1af4 (patch) | |
tree | 04a2c15d41f79c05b74b67c9bbab4bfb483be6e1 /model/entry_test.go | |
parent | 453ff64f29c5ca330b20fb9c3dd41bbf7e7b7396 (diff) |
Make entries sorting configurable
Diffstat (limited to 'model/entry_test.go')
-rw-r--r-- | model/entry_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/model/entry_test.go b/model/entry_test.go index 2f8c25d..8b92d3f 100644 --- a/model/entry_test.go +++ b/model/entry_test.go @@ -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"`) } } |