Add tiered configuration.
This commit is contained in:
25
third_party/github.com/BurntSushi/toml/encode_test.go
vendored
Normal file
25
third_party/github.com/BurntSushi/toml/encode_test.go
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
package toml
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type encodeSimple struct {
|
||||
Location string
|
||||
// Ages []int
|
||||
// DOB time.Time
|
||||
}
|
||||
|
||||
func TestEncode(t *testing.T) {
|
||||
v := encodeSimple{
|
||||
Location: "Westborough, MA",
|
||||
}
|
||||
|
||||
buf := new(bytes.Buffer)
|
||||
e := newEncoder(buf)
|
||||
if err := e.Encode(v); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
testf(buf.String())
|
||||
}
|
Reference in New Issue
Block a user