Fix dummy return. Closes #34

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-10-18 23:55:25 +02:00
parent ecfa3dfa74
commit 304276db47
2 changed files with 13 additions and 3 deletions
+11 -1
View File
@@ -147,7 +147,17 @@ func TestSnapshotNonBlockingReadWithOtherReaders(t *testing.T) {
}
}
func TestAppendReturnsTheInsertedRoutedWithTheActualIndexWhenEmpty(t *testing.T) {
func TestAppendReturnsTheInsertedRouted(t *testing.T) {
srl := New()
r := srl.Append(model.Route{ID: "FOO"})
if r.ID != "FOO" {
t.Errorf(`ID of the returned route is not "FOO", but %q`, r.ID)
}
}
func TestAppendReturnsTheNumberedRoutesWhenEmpty(t *testing.T) {
srl := New()
r := srl.Append(model.Route{})