[New] Constructor for time types, that accepts time.Time. (TimeT, TimezT, DateT, ...)
This commit is contained in:
parent
647ef21aaf
commit
6ee2f45548
11 changed files with 182 additions and 22 deletions
|
|
@ -47,7 +47,7 @@ func AssertExecErr(t *testing.T, stmt jet.Statement, db execution.DB, errorStr s
|
|||
assert.Error(t, err, errorStr)
|
||||
}
|
||||
|
||||
func AssertJSON(t *testing.T, expectedJSON string, data interface{}) {
|
||||
func AssertJSON(t *testing.T, data interface{}, expectedJSON string) {
|
||||
jsonData, err := json.MarshalIndent(data, "", "\t")
|
||||
assert.NilError(t, err)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue