Skip to content

Commit

Permalink
[Test] Add test for the new selector
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Aug 19, 2019
1 parent 0c8dcea commit fd1a185
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/lua/unit/selectors.lua
Expand Up @@ -251,6 +251,10 @@ context("Selectors test", function()
selector = "id('key').filter_map(test_map)",
expect = {'key'}
},
["map except"] = {
selector = "list('key', 'key1', 'key2', 'key3', 'key4').except_map(test_map)",
expect = {{'key2', 'key4'}}
},
["map apply"] = {
selector = "id('key').apply_map(test_map)",
expect = {'value'}
Expand Down

0 comments on commit fd1a185

Please sign in to comment.