aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorSeyed Mirsadeghi <[email protected]>2018-03-01 06:29:54 -0500
committerDan Gudmundsson <[email protected]>2018-03-01 12:29:54 +0100
commit693315d23293cb107c2ad7e50960dee40d7a3ca9 (patch)
tree9541bc9c715acfe51d591250c450f591e4b642e7 /lib/stdlib/test
parent6c03897a8aceab079c7169b01d9611e0708d4f9e (diff)
downloadotp-693315d23293cb107c2ad7e50960dee40d7a3ca9.tar.gz
otp-693315d23293cb107c2ad7e50960dee40d7a3ca9.tar.bz2
otp-693315d23293cb107c2ad7e50960dee40d7a3ca9.zip
ERL-558 Add the missing function clause for string:prefix (#1702)
OTP-14942
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/string_SUITE.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/test/string_SUITE.erl b/lib/stdlib/test/string_SUITE.erl
index f43bfb4482..17714b8d4d 100644
--- a/lib/stdlib/test/string_SUITE.erl
+++ b/lib/stdlib/test/string_SUITE.erl
@@ -485,6 +485,10 @@ to_float(_) ->
prefix(_) ->
?TEST("", ["a"], nomatch),
?TEST("a", [""], "a"),
+ ?TEST("a", [[[]]], "a"),
+ ?TEST("a", [<<>>], "a"),
+ ?TEST("a", [[<<>>]], "a"),
+ ?TEST("a", [[[<<>>]]], "a"),
?TEST("b", ["a"], nomatch),
?TEST("a", ["a"], ""),
?TEST("å", ["a"], nomatch),