aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/bif_SUITE.erl
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-06-02 12:00:05 +0200
committerPatrik Nyblom <[email protected]>2010-06-02 16:47:29 +0200
commit656e4790551b2211ff51c3ca24adbd07b135327e (patch)
treea21891dcfbc9fecc52870cf093c51576ac5bb157 /erts/emulator/test/bif_SUITE.erl
parent0e4daed8ff441645c94723332c6742944b2cc547 (diff)
downloadotp-656e4790551b2211ff51c3ca24adbd07b135327e.tar.gz
otp-656e4790551b2211ff51c3ca24adbd07b135327e.tar.bz2
otp-656e4790551b2211ff51c3ca24adbd07b135327e.zip
Autoimport min/2 and max/2
Diffstat (limited to 'erts/emulator/test/bif_SUITE.erl')
-rw-r--r--erts/emulator/test/bif_SUITE.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/erts/emulator/test/bif_SUITE.erl b/erts/emulator/test/bif_SUITE.erl
index cfbc5dfe81..2d00128001 100644
--- a/erts/emulator/test/bif_SUITE.erl
+++ b/erts/emulator/test/bif_SUITE.erl
@@ -308,6 +308,18 @@ min_max(Config) when is_list(Config) ->
?line 42.0 = erlang:min(42.0, 42),
?line 42.0 = erlang:max(42.0, 42),
+ %% And now (R14) they are also autoimported!
+ ?line a = min(id(a), a),
+ ?line a = min(id(a), b),
+ ?line a = min(id(b), a),
+ ?line b = min(id(b), b),
+ ?line a = max(id(a), a),
+ ?line b = max(id(a), b),
+ ?line b = max(id(b), a),
+ ?line b = max(id(b), b),
+
+ ?line 42.0 = min(42.0, 42),
+ ?line 42.0 = max(42.0, 42),
ok.