assertify changed behavior and consider float64 != int

This commit is contained in:
Antoine Grondin 2015-04-22 22:48:32 -04:00
parent 55eb11d21d
commit 9561fcd7d6
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ func TestUserSuppliedLevelFieldHasPrefix(t *testing.T) {
log.WithField("level", 1).Info("test")
}, func(fields Fields) {
assert.Equal(t, fields["level"], "info")
assert.Equal(t, fields["fields.level"], 1)
assert.Equal(t, fields["fields.level"], 1.0) // JSON has floats only
})
}