clbustos / distribution

Statistical Distributions multi library wrapper. Uses Ruby by default and C (statistics2/GSL) or Java extensions where available.
Other
141 stars 52 forks source link

other failing tests #19

Open boutil opened 9 years ago

boutil commented 9 years ago

Hi again,

After adding the requirement for weibull, I have now two more tests failing:

Failures:

  1) Distribution::Exponential rng should default to Kernel#rand if no :random is given
     Failure/Error: Random.should_receive(:rand).and_return(0.5)
       (Random (class)).rand(*(any args))
           expected: 1 time with any arguments
           received: 0 times with any arguments
     # ./spec/exponential_spec.rb:82:in `block (3 levels) in <top (required)>'

  2) Distribution::Exponential rng should use a given rng if one is passed during construction
     Failure/Error: rng = Distribution::Exponential::rng 1.0, :random => random
     ArgumentError:
       wrong number of arguments (2 for 1)
     # ./spec/exponential_spec.rb:90:in `block (3 levels) in <top (required)>