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.

21 lines
285 B

4 years ago
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) {
4 years ago
t.Parallel()
4 years ago
test.RunDecode(t, toml.Decode, data)
}