aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-05-22 13:16:57 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-05-25 11:37:43 +0200
commitcd7f46ce2d69c0dcd58d3b001fa64369af392b95 (patch)
tree6320163b2ea0a89e584c0f3c7ef6f181da6346cc
parentf0dd86ed160bbc9b4f3949a0453fdcef49f98666 (diff)
downloadotp-cd7f46ce2d69c0dcd58d3b001fa64369af392b95.tar.gz
otp-cd7f46ce2d69c0dcd58d3b001fa64369af392b95.tar.bz2
otp-cd7f46ce2d69c0dcd58d3b001fa64369af392b95.zip
stdlib: Minor change of unicode_SUITE
-rw-r--r--lib/stdlib/test/unicode_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib/test/unicode_SUITE.erl b/lib/stdlib/test/unicode_SUITE.erl
index 613be99ccd..9f5d485df6 100644
--- a/lib/stdlib/test/unicode_SUITE.erl
+++ b/lib/stdlib/test/unicode_SUITE.erl
@@ -87,8 +87,9 @@ ex_binaries_errors_utf8(Config) when is_list(Config) ->
%% Now, try with longer binary (trapping)
BrokenPart = list_to_binary(lists:seq(128,255)),
BrokenSz = byte_size(BrokenPart),
+ Seq255 = lists:seq(1,255),
[ begin
- OKList = lists:flatten(lists:duplicate(N,lists:seq(1,255))),
+ OKList = lists:flatten(lists:duplicate(N,Seq255)),
OKBin = unicode:characters_to_binary(OKList),
OKLen = length(OKList),
%% Copy to avoid that the binary get's writable