aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-02-28 15:23:11 +0100
committerDan Gudmundsson <[email protected]>2017-04-24 12:16:56 +0200
commita9d0d119837fb0bc52d2bb3d48a47568de9100b4 (patch)
tree6c7550f7e139323bb6169f1f4da6ee6dfe0a8ba4 /erts/emulator/test
parent2c72e662bad11a41839780f86680d4bb05367c78 (diff)
downloadotp-a9d0d119837fb0bc52d2bb3d48a47568de9100b4.tar.gz
otp-a9d0d119837fb0bc52d2bb3d48a47568de9100b4.tar.bz2
otp-a9d0d119837fb0bc52d2bb3d48a47568de9100b4.zip
Handle chardata in string:to_float and string:to_list
Diffstat (limited to 'erts/emulator/test')
-rw-r--r--erts/emulator/test/list_bif_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/list_bif_SUITE.erl b/erts/emulator/test/list_bif_SUITE.erl
index 514dd2f412..9c40929926 100644
--- a/erts/emulator/test/list_bif_SUITE.erl
+++ b/erts/emulator/test/list_bif_SUITE.erl
@@ -47,9 +47,9 @@ t_list_to_integer(Config) when is_list(Config) ->
{12373281903728109372810937209817320981321,"ABC"} = string:to_integer("12373281903728109372810937209817320981321ABC"),
{-12373281903728109372810937209817320981321,"ABC"} = string:to_integer("-12373281903728109372810937209817320981321ABC"),
{12,[345]} = string:to_integer([$1,$2,345]),
- {12,[a]} = string:to_integer([$1,$2,a]),
+ {error, badarg} = string:to_integer([$1,$2,a]),
{error,no_integer} = string:to_integer([$A]),
- {error,not_a_list} = string:to_integer($A),
+ {error,badarg} = string:to_integer($A),
ok.
%% Test hd/1 with correct and incorrect arguments.