Browse Source

Add test for empty Moment slice

master
Peter Stuifzand 3 years ago
parent
commit
d36b79e094
  1. 5
      util_test.go

5
util_test.go

@ -5,6 +5,11 @@ import (
"time"
)
func TestReverseEmpty(t *testing.T) {
var moments []Moment
Reverse(moments)
}
func TestReverse(t *testing.T) {
moments := []Moment{
{Key: "2018-01-01", Memo: "test", Time: time.Now()},

Loading…
Cancel
Save