mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 23:58:44 +05:00
Added test for SliceStringToIface
This commit is contained in:
committed by
Dan Christian Bogos
parent
d91c754389
commit
f6260cbeeb
@@ -54,3 +54,11 @@ func TestStripSlicePrefix(t *testing.T) {
|
||||
t.Errorf("expecting: %+v, received: %+v", eSlc, retSlc)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSliceStringToIface(t *testing.T) {
|
||||
args := []string{"*default", "ToR", "*voice"}
|
||||
exp := []interface{}{"*default", "ToR", "*voice"}
|
||||
if rply := SliceStringToIface(args); !reflect.DeepEqual(exp, rply) {
|
||||
t.Errorf("Expected: %s ,received: %s", ToJSON(exp), ToJSON(rply))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user