mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 07:08:45 +05:00
Add tests for rsr and correctly value in diameter
This commit is contained in:
committed by
Dan Christian Bogos
parent
bb54f1a29c
commit
d998cf71ac
@@ -65,3 +65,10 @@ func TestProcessReSearchReplace5(t *testing.T) {
|
||||
t.Error("Unexpected output from SearchReplace: ", outStr)
|
||||
}
|
||||
}
|
||||
|
||||
func TestProcessReSearchReplace6(t *testing.T) {
|
||||
rsr := &ReSearchReplace{SearchRegexp: regexp.MustCompile(`(.*)`), ReplaceTemplate: "${1}_suffix"}
|
||||
if outStr := rsr.Process("call"); outStr != "call_suffix" {
|
||||
t.Error("Unexpected output from SearchReplace: ", outStr)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user