add more tests

This commit is contained in:
kevin
2020-09-30 17:47:56 +08:00
parent 9e9ce3bf48
commit 481895d1e4
5 changed files with 13 additions and 5 deletions

View File

@@ -41,3 +41,8 @@ func TestSetInt(t *testing.T) {
props.SetInt(key, value)
assert.Equal(t, value, props.GetInt(key))
}
func TestLoadBadFile(t *testing.T) {
_, err := LoadProperties("nosuchfile")
assert.NotNil(t, err)
}