config test

This commit is contained in:
alessio 2016-08-19 01:08:52 +02:00
parent c706be3186
commit 446041350b
1 changed files with 16 additions and 0 deletions

16
realize/config_test.go Normal file
View File

@ -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)
}
}