Skip to content
Permalink
Browse files

[Tests] Add LIKE underscore (_) test to feature source test base

  • Loading branch information
rldhont authored and nyalldawson committed Feb 8, 2019
1 parent 094620b commit 4b60a1e3bdeb6fc5c8be5767a931a56b6dbcc564
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/python/featuresourcetestbase.py
@@ -155,6 +155,8 @@ def runGetFeatureTests(self, source):
self.assert_query(source, '(name = \'Apple\') is not null', [1, 2, 3, 4])
self.assert_query(source, 'name LIKE \'Apple\'', [2])
self.assert_query(source, 'name LIKE \'aPple\'', [])
self.assert_query(source, 'name LIKE \'Ap_le\'', [2])
self.assert_query(source, 'name LIKE \'Ap\\_le\'', [])
self.assert_query(source, 'name ILIKE \'aPple\'', [2])
self.assert_query(source, 'name ILIKE \'%pp%\'', [2])
self.assert_query(source, 'cnt > 0', [1, 2, 3, 4])

0 comments on commit 4b60a1e

Please sign in to comment.
You can’t perform that action at this time.