From 2f1367a8d4c33e7c6ba459cfc6756e079c7a1af4 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 2 Dec 2017 17:04:01 -0800 Subject: Make entries sorting configurable --- model/entry_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'model/entry_test.go') 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"`) } } -- cgit v1.2.3