From 980291feffe36fd784a9991aea2c5f776c7deb68 Mon Sep 17 00:00:00 2001 From: Colin Dellow Date: Thu, 5 Jul 2018 21:05:06 -0400 Subject: [PATCH] add glob tests --- tests/templates/156-glob.sql | 2 ++ tests/templates/157-glob-star.sql | 7 +++++++ tests/templates/158-glob-star-eight.sql | 2 ++ tests/templates/159-glob-star-zero.sql | 10 ++++++++++ tests/templates/160-glob-star.sql | 2 ++ tests/templates/161-glob-star-stuff.sql | 2 ++ 6 files changed, 25 insertions(+) create mode 100644 tests/templates/156-glob.sql create mode 100644 tests/templates/157-glob-star.sql create mode 100644 tests/templates/158-glob-star-eight.sql create mode 100644 tests/templates/159-glob-star-zero.sql create mode 100644 tests/templates/160-glob-star.sql create mode 100644 tests/templates/161-glob-star-stuff.sql diff --git a/tests/templates/156-glob.sql b/tests/templates/156-glob.sql new file mode 100644 index 0000000..f2cba44 --- /dev/null +++ b/tests/templates/156-glob.sql @@ -0,0 +1,2 @@ +select string_7 from nulls where string_7 glob '7' +7 diff --git a/tests/templates/157-glob-star.sql b/tests/templates/157-glob-star.sql new file mode 100644 index 0000000..4b03d99 --- /dev/null +++ b/tests/templates/157-glob-star.sql @@ -0,0 +1,7 @@ +select string_7 from nulls where string_7 glob '7*' +7 +70 +72 +74 +76 +78 diff --git a/tests/templates/158-glob-star-eight.sql b/tests/templates/158-glob-star-eight.sql new file mode 100644 index 0000000..2a0e12c --- /dev/null +++ b/tests/templates/158-glob-star-eight.sql @@ -0,0 +1,2 @@ +select string_7 from nulls where string_7 glob '7*8' +78 diff --git a/tests/templates/159-glob-star-zero.sql b/tests/templates/159-glob-star-zero.sql new file mode 100644 index 0000000..1378b63 --- /dev/null +++ b/tests/templates/159-glob-star-zero.sql @@ -0,0 +1,10 @@ +select string_7 from nulls where string_7 glob '*0' +0 +20 +30 +40 +50 +60 +70 +80 +90 diff --git a/tests/templates/160-glob-star.sql b/tests/templates/160-glob-star.sql new file mode 100644 index 0000000..0b401d1 --- /dev/null +++ b/tests/templates/160-glob-star.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where string_7 glob '*' +50 diff --git a/tests/templates/161-glob-star-stuff.sql b/tests/templates/161-glob-star-stuff.sql new file mode 100644 index 0000000..7f474d0 --- /dev/null +++ b/tests/templates/161-glob-star-stuff.sql @@ -0,0 +1,2 @@ +select count(*) from nulls where string_7 glob '*123' +0