This commit is contained in:
19
toml/encoding_test.go
Normal file
19
toml/encoding_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package toml_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"gitoa.ru/go-4devs/encoding/test"
|
||||
"gitoa.ru/go-4devs/encoding/toml"
|
||||
)
|
||||
|
||||
const data = `
|
||||
string = "string data"
|
||||
time = 2020-05-24T09:15:00Z
|
||||
[struct]
|
||||
id = 42
|
||||
`
|
||||
|
||||
func TestDecode(t *testing.T) {
|
||||
test.RunDecode(t, toml.Decode, data)
|
||||
}
|
||||
Reference in New Issue
Block a user