src/tests/keywords/if-regex-bad-attribute
raw| 1 | # |
| 2 | # PRE: if-regex-match if-regex-error |
| 3 | # |
| 4 | |
| 5 | # |
| 6 | # This should parse |
| 7 | # |
| 8 | if (&User-Name =~ /%{User-Name}/) { |
| 9 | update reply { |
| 10 | Filter-Id := "filter" |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | # |
| 15 | # Check regexes which refer to unknown attributes |
| 16 | # |
| 17 | if (&User-Name =~ /%{What-The-Heck-Is-This-Thing}/) { # ERROR |
| 18 | update reply { |
| 19 | Filter-Id := "filter" |
| 20 | } |
| 21 | } |