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
271 B
20 lines
271 B
3 years ago
|
package yaml_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"gitoa.ru/go-4devs/encoding/test"
|
||
|
"gitoa.ru/go-4devs/encoding/yaml"
|
||
|
)
|
||
|
|
||
|
const data = `
|
||
|
string: "string data"
|
||
|
time: 2020-05-24T09:15:00Z
|
||
|
struct:
|
||
|
id: 42
|
||
|
`
|
||
|
|
||
|
func TestDecode(t *testing.T) {
|
||
|
test.RunDecode(t, yaml.Decode, data)
|
||
|
}
|