Skip to content

Commit

Permalink
Add extra tests for xlat related to #3169
Browse files Browse the repository at this point in the history
It will help us to avoid the crash again.
  • Loading branch information
jpereira authored and alandekok committed Dec 3, 2019
1 parent 74135e1 commit b48fb6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tests/unit/xlat/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ match \"%{reply:3GPP-IMSI[2]}\"
xlat /([A-Z0-9\\-]*)_%{Calling-Station-Id}/
match /([A-Z0-9\\-]*)_%{Calling-Station-Id}/

xlat %{length}
match ERROR offset 2 'Unknown attribute'

xlat %{length:
match ERROR offset 1 'No matching closing brace'

xlat %{length:1 + 2
match ERROR offset 14 'Missing closing brace at end of string'

Expand Down Expand Up @@ -252,4 +258,4 @@ xlat %{myfirstxlat
match ERROR offset 1 'No matching closing brace'

count
match 153
match 157

0 comments on commit b48fb6c

Please sign in to comment.