Skip to content

Commit

Permalink
More test cases for if parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
buglloc committed Jul 6, 2017
1 parent 04dfa39 commit ffbba62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/parser/test_raw_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ def test_if():
if ($request_filename ~* ^.*?/(\d+_)([^/]+)$) {
}
if ($http_user_agent ~* "^WordPress.*; verifying pingback") {
}
if ($foo = "BAR") { rewrite ^(.*)$ /bar; }
'''

Expand Down Expand Up @@ -262,6 +265,8 @@ def test_if():
]],
['if', ['$request_filename', '~*', '^.*?/(\d+_)([^/]+)$'], [
]],
['if', ['$http_user_agent', '~*', '^WordPress.*; verifying pingback'], [
]],
['if', ['$foo', '=', 'BAR'], [
['rewrite', '^(.*)$', '/bar']
]]
Expand Down

0 comments on commit ffbba62

Please sign in to comment.