Versioning fix

This commit is contained in:
edwardro22
2017-09-07 15:00:18 +00:00
parent 411b049591
commit 2c7d27745c
30 changed files with 347 additions and 1680 deletions

View File

@@ -92,14 +92,14 @@ func TestIsEmpty(t *testing.T) {
}
}
func TestMapStringToInt64(t *testing.T){
t1:=map[string]int64{"test":int64(21)}
t2:=map[string]string{"test":"21"}
t3,err:=MapStringToInt64(t2)
if err!=nil{
t.Error("Got Error: ",err)
func TestMapStringToInt64(t *testing.T) {
t1 := map[string]int64{"test": int64(21)}
t2 := map[string]string{"test": "21"}
t3, err := MapStringToInt64(t2)
if err != nil {
t.Error("Got Error: ", err)
}
if !reflect.DeepEqual(t1,t3){
if !reflect.DeepEqual(t1, t3) {
t.Errorf("Expecting: %+v, received: %+v", t1, t3)
}
}
}