From 16fea1e5424e67baea92790819528ff8a90c4cf5 Mon Sep 17 00:00:00 2001 From: Borys Tomala Date: Fri, 29 Apr 2016 09:37:33 +0200 Subject: [PATCH] fixed accidentally broken test --- copier_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copier_test.go b/copier_test.go index 0927a0a..977194d 100644 --- a/copier_test.go +++ b/copier_test.go @@ -89,6 +89,10 @@ func TestEmbedded(t *testing.T) { embeded.EmbedField2 = 4 Copy(&base, &embeded) + + if base.BaseField1 != 1 { + t.Error("Embedded fields not copied") + } } func TestDifferentType(t *testing.T) {