From c706be3186cd33a42894130c9bf2a91a5175a21e Mon Sep 17 00:00:00 2001 From: alessio Date: Thu, 18 Aug 2016 23:19:21 +0200 Subject: [PATCH] testinit --- realize/app_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 realize/app_test.go diff --git a/realize/app_test.go b/realize/app_test.go new file mode 100644 index 0000000..cff1335 --- /dev/null +++ b/realize/app_test.go @@ -0,0 +1,14 @@ +package realize + +import ( + "testing" + "reflect" +) + +func TestInit(t *testing.T) { + actual := Init() + expected := &App{Name:AppName,Version:AppVersion,Description:AppDescription,Author:AppAuthor,Email:AppEmail} + if !reflect.DeepEqual(actual,expected) { + t.Errorf("Test failed, expected: '%s', got: '%s'", expected, actual) + } +}