Added last function for alerting conditions

This commit is contained in:
utkarshcmu
2016-11-07 17:28:30 -08:00
parent 5bbdd99d35
commit 74632b5e98
3 changed files with 14 additions and 0 deletions

View File

@@ -35,6 +35,12 @@ func TestSimpleReducer(t *testing.T) {
result := testReducer("count", 1, 2, 3000)
So(result, ShouldEqual, float64(3))
})
Convey("last", func() {
result := testReducer("last", 1, 2, 3000)
So(result, ShouldEqual, float64(3000))
})
})
}