21 lines
269 B
Go
21 lines
269 B
Go
package mergo_test
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"git.ct129.com/cmesh/mergo"
|
|
)
|
|
|
|
type testStruct struct {
|
|
time.Duration
|
|
}
|
|
|
|
func TestIssue50Merge(t *testing.T) {
|
|
to := testStruct{}
|
|
from := testStruct{}
|
|
|
|
if err := mergo.Merge(&to, from); err != nil {
|
|
t.Fail()
|
|
}
|
|
}
|