summaryrefslogtreecommitdiffstats
path: root/tests/test_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build.py')
-rw-r--r--tests/test_build.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index f354640..826a59b 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -58,6 +58,9 @@ class TestBuild(unittest.TestCase):
(lambda: x.as_("y"), "x AS y"),
(lambda: x.isin(1, "2"), "x IN (1, '2')"),
(lambda: x.isin(query="select 1"), "x IN (SELECT 1)"),
+ (lambda: x.isin(unnest="x"), "x IN (SELECT UNNEST(x))"),
+ (lambda: x.isin(unnest="x"), "x IN UNNEST(x)", "bigquery"),
+ (lambda: x.isin(unnest=["x", "y"]), "x IN (SELECT UNNEST(x, y))"),
(lambda: x.between(1, 2), "x BETWEEN 1 AND 2"),
(lambda: 1 + x + 2 + 3, "1 + x + 2 + 3"),
(lambda: 1 + x * 2 + 3, "1 + (x * 2) + 3"),