spec/post_processors/environment_spec.rb in bigbench-0.0.5 vs spec/post_processors/environment_spec.rb in bigbench-0.0.6

- old
+ new

@@ -240,12 +240,14 @@ polynomial_regression(:degree => 2).durations.x.size.should == 8 polynomial_regression(:degree => 2).durations.y.size.should == 8 polynomial_regression(:degree => 2).durations.derivation(0).size.should == 8 polynomial_regression(:degree => 2).durations.derivation(1).size.should == 8 polynomial_regression(:degree => 2).durations.degree.should == 2 - polynomial_regression(:degree => 2).durations.coefficients.should == [1.1347571673566461, 0.04059849330278298, -0.005668036047256117] - polynomial_regression(:degree => 2).durations.formula.should == "1.1347571673566461 + 0.04059849330278298x^1 + -0.005668036047256117x^2" - polynomial_regression(:degree => 2).durations.formula(1).should == "0.04059849330278298 + 2*-0.005668036047256117x^1" + polynomial_regression(:degree => 2).durations.coefficients[0].should be_within(0.1).of(1.13) + polynomial_regression(:degree => 2).durations.coefficients[1].should be_within(0.1).of(0.04) + polynomial_regression(:degree => 2).durations.coefficients[2].should be_within(0.1).of(-0.00) + polynomial_regression(:degree => 2).durations.formula.should be_a(String) + polynomial_regression(:degree => 2).durations.formula(1).should be_a(String) end end context "appearing", :appearing do \ No newline at end of file