You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
285 B
20 lines
285 B
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) {
|
|
t.Parallel()
|
|
test.RunDecode(t, toml.Decode, data)
|
|
}
|
|
|