%description: check the distributions are properly accessible from an ini file via NED same as inifile_distrib_1.test, only with plus rng parameter FIXME: These tests are very fragile. They depend on the floating-point arithmetic and the default printing of doubles being EXACTLY THE SAME on all machines. They also break if anything changes in the underlying RNGs. !!! THIS TEST IS CURRENTLY OUT OF ORDER (%contains always matches) !!! The dist/ dir can be used to test the functions. %file: test.ned simple Simple { parameters: @isNetwork(true); volatile double uniform_par; volatile double exponential_par; volatile double normal_par; volatile double truncnormal_par; volatile double gamma_d_par; volatile double beta_par; volatile double erlang_k_par; volatile double chi_square_par; volatile double student_t_par; volatile double cauchy_par; volatile double triang_par; volatile double lognormal_par; volatile double weibull_par; volatile double pareto_shifted_par; volatile double intuniform_par; volatile double bernoulli_par; volatile double binomial_par; volatile double geometric_par; volatile double negbinomial_par; // hypergeometric_par, volatile double poisson_par; } %file: test.cc #include using namespace omnetpp; namespace @TESTNAME@ { class Simple : public cSimpleModule { public: Simple() : cSimpleModule(16384) { } virtual void activity() override; }; Define_Module(Simple); #define PAR_MEAN_AND_VARIANCE(PARNAME) \ {\ cPar& PARNAME = par(#PARNAME); cStdDev s; \ for (int i=0; i