summaryrefslogtreecommitdiff
path: root/tests/db_functions/text
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db_functions/text')
-rw-r--r--tests/db_functions/text/test_pad.py2
-rw-r--r--tests/db_functions/text/test_repeat.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/db_functions/text/test_pad.py b/tests/db_functions/text/test_pad.py
index 17c33a30d8..fbe82c166e 100644
--- a/tests/db_functions/text/test_pad.py
+++ b/tests/db_functions/text/test_pad.py
@@ -25,6 +25,8 @@ class PadTests(TestCase):
(RPad('name', 0), ''),
(LPad('name', None), none_value),
(RPad('name', None), none_value),
+ (LPad(Value(None), 1), none_value),
+ (RPad(Value(None), 1), none_value),
(LPad('goes_by', 1), none_value),
(RPad('goes_by', 1), none_value),
)
diff --git a/tests/db_functions/text/test_repeat.py b/tests/db_functions/text/test_repeat.py
index c1e136c8f0..2234c2e2da 100644
--- a/tests/db_functions/text/test_repeat.py
+++ b/tests/db_functions/text/test_repeat.py
@@ -16,6 +16,7 @@ class RepeatTests(TestCase):
(Repeat('name', Length('alias')), 'JohnJohnJohn'),
(Repeat(Value('x'), 3), 'xxx'),
(Repeat('name', None), none_value),
+ (Repeat(Value(None), 4), none_value),
(Repeat('goes_by', 1), none_value),
)
for function, repeated_text in tests: