diff options
author | Anders Svensson <[email protected]> | 2015-09-14 23:26:03 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2015-09-14 23:26:03 +0200 |
commit | f4534cb9841c4ec9d6c7048555ed1ba5169b966f (patch) | |
tree | b75c2a1592303bb2d7e64ea68e00b2c7b2210d04 /lib/stdlib/test/rand_SUITE.erl | |
parent | 9fc6588660a6834f8545de32f7677c0d2acd7379 (diff) | |
parent | 44a53a37f39e65c935ed2648ec74dc0f741611e1 (diff) | |
download | otp-f4534cb9841c4ec9d6c7048555ed1ba5169b966f.tar.gz otp-f4534cb9841c4ec9d6c7048555ed1ba5169b966f.tar.bz2 otp-f4534cb9841c4ec9d6c7048555ed1ba5169b966f.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/stdlib/test/rand_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/rand_SUITE.erl | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/lib/stdlib/test/rand_SUITE.erl b/lib/stdlib/test/rand_SUITE.erl index b03caebe91..111bf620de 100644 --- a/lib/stdlib/test/rand_SUITE.erl +++ b/lib/stdlib/test/rand_SUITE.erl @@ -25,7 +25,9 @@ ]). -export([interval_int/1, interval_float/1, seed/1, - api_eq/1, reference/1, basic_stats/1, + api_eq/1, reference/1, + basic_stats_uniform_1/1, basic_stats_uniform_2/1, + basic_stats_normal/1, plugin/1, measure/1 ]). @@ -51,11 +53,13 @@ all() -> [seed, interval_int, interval_float, api_eq, reference, - basic_stats, + {group, basic_stats}, plugin, measure ]. -groups() -> []. +groups() -> + [{basic_stats, [parallel], + [basic_stats_uniform_1, basic_stats_uniform_2, basic_stats_normal]}]. init_per_suite(Config) -> Config. end_per_suite(_Config) -> ok. @@ -291,14 +295,19 @@ gen(_, _, Acc) -> lists:reverse(Acc). %% The algorithms must have good properties to begin with %% -basic_stats(doc) -> ["Check that the algorithms generate sound values."]; -basic_stats(suite) -> []; -basic_stats(Config) when is_list(Config) -> - io:format("Testing uniform~n",[]), +%% Check that the algorithms generate sound values. + +basic_stats_uniform_1(Config) when is_list(Config) -> [basic_uniform_1(?LOOP, rand:seed_s(Alg), 0.0, array:new([{default, 0}])) || Alg <- algs()], + ok. + +basic_stats_uniform_2(Config) when is_list(Config) -> [basic_uniform_2(?LOOP, rand:seed_s(Alg), 0, array:new([{default, 0}])) || Alg <- algs()], + ok. + +basic_stats_normal(Config) when is_list(Config) -> io:format("Testing normal~n",[]), [basic_normal_1(?LOOP, rand:seed_s(Alg), 0, 0) || Alg <- algs()], ok. |