aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorSerge Aleynikov <[email protected]>2018-08-10 09:54:01 -0400
committerSverker Eriksson <[email protected]>2018-08-27 19:20:42 +0200
commit203ee6dcbd57c2fdbd9b9e09f0c42f7abf04dbd8 (patch)
tree9065a8b05b41a4daaf4e0ef1288857a458c6e151 /erts/emulator/test
parentecea0a8b85e650ff717623dc6be2c18a8dbba971 (diff)
downloadotp-203ee6dcbd57c2fdbd9b9e09f0c42f7abf04dbd8.tar.gz
otp-203ee6dcbd57c2fdbd9b9e09f0c42f7abf04dbd8.tar.bz2
otp-203ee6dcbd57c2fdbd9b9e09f0c42f7abf04dbd8.zip
Fix bug in compact representation of float_to_list/2
Diffstat (limited to 'erts/emulator/test')
-rw-r--r--erts/emulator/test/num_bif_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/test/num_bif_SUITE.erl b/erts/emulator/test/num_bif_SUITE.erl
index 700734cd0b..f15217814a 100644
--- a/erts/emulator/test/num_bif_SUITE.erl
+++ b/erts/emulator/test/num_bif_SUITE.erl
@@ -161,6 +161,7 @@ t_float_to_string(Config) when is_list(Config) ->
test_fts("1.000",1.0, [{decimals, 3}]),
test_fts("1.0",1.0, [{decimals, 1}]),
test_fts("1.0",1.0, [{decimals, 3}, compact]),
+ test_fts("10",10.0, [{decimals, 0}, compact]),
test_fts("1.12",1.123, [{decimals, 2}]),
test_fts("1.123",1.123, [{decimals, 3}]),
test_fts("1.123",1.123, [{decimals, 3}, compact]),