diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/selectors.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua index 294e98b62..dea80fdbf 100644 --- a/test/lua/unit/selectors.lua +++ b/test/lua/unit/selectors.lua @@ -342,6 +342,14 @@ context("Selectors test", function() selector = "header(X-Test, full).last", expect = {"3"} }, + ["header lower digest substring"] = { + selector = "header('Subject').lower.digest('hex').substring(1, 16)", + expect = {"736ad5f50fc95d73"} + }, + ["header gsub"] = { + selector = "header('Subject'):gsub('a', 'b')", + expect = {"Second, lower-cbsed hebder subject"} + }, } for case_name, case in pairs(cases) do |