From 446041350b6094bc33c8589367f705f3c2ee3090 Mon Sep 17 00:00:00 2001 From: alessio Date: Fri, 19 Aug 2016 01:08:52 +0200 Subject: [PATCH] config test --- realize/config_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 realize/config_test.go diff --git a/realize/config_test.go b/realize/config_test.go new file mode 100644 index 0000000..4903e5c --- /dev/null +++ b/realize/config_test.go @@ -0,0 +1,16 @@ +package realize + +import ( + "gopkg.in/urfave/cli.v2" + "testing" +) + +var context *cli.Context + +func TestNew(t *testing.T) { + actual := New(context) + expected := &Config{file:AppFile,Version: AppVersion} + if actual == expected { + t.Errorf("Test failed, expected: '%s', got: '%s'",expected, actual) + } +} \ No newline at end of file