aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/string_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-03-01 12:37:49 +0100
committerDan Gudmundsson <[email protected]>2018-03-01 12:37:49 +0100
commit3bba476ad0df599050ccfc0826856111f5ff1bde (patch)
tree8703a51657f3a9716863cb2920e4dce88797be12 /lib/stdlib/test/string_SUITE.erl
parent88c4c305636618af4002c8c484083668a88824e9 (diff)
parent693315d23293cb107c2ad7e50960dee40d7a3ca9 (diff)
downloadotp-3bba476ad0df599050ccfc0826856111f5ff1bde.tar.gz
otp-3bba476ad0df599050ccfc0826856111f5ff1bde.tar.bz2
otp-3bba476ad0df599050ccfc0826856111f5ff1bde.zip
Merge branch 'maint'
* maint: ERL-558 Add the missing function clause for string:prefix (#1702)
Diffstat (limited to 'lib/stdlib/test/string_SUITE.erl')
-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 c4a469c251..fdff2d24b8 100644
--- a/lib/stdlib/test/string_SUITE.erl
+++ b/lib/stdlib/test/string_SUITE.erl
@@ -486,6 +486,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),