1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-11-25 22:01:39 +02:00

Feature/#8 date diff (#175)

This commit is contained in:
3timeslazy
2018-11-14 00:58:40 +03:00
committed by Tim Voronov
parent 9131c676d9
commit b4a8c8ba3c
4 changed files with 273 additions and 1 deletions

View File

@@ -14,7 +14,6 @@ import (
type testCase struct {
Name string
Expected core.Value
TimeArg time.Time
Args []core.Value
ShouldErr bool
}
@@ -32,6 +31,7 @@ func (tc *testCase) Do(t *testing.T, fn core.Function) {
So(err, ShouldBeNil)
}
So(actual.Type(), ShouldEqual, expected.Type())
So(actual.Compare(expected), ShouldEqual, 0)
})
}