spec/dydx_spec.rb in dydx-0.1.25 vs spec/dydx_spec.rb in dydx-0.1.28
- old
+ new
@@ -15,11 +15,11 @@
context 'ex2' do
$b = (:x ^ (:x * 2))
let(:d1){ db/dx }
let(:d2){ d/dx($b) }
- it{ expect(d1.to_s).to eq('( ( x * 2 ) * ( x ^ ( ( x * 2 ) - 1 ) ) )') }
- it{ expect(d2.to_s).to eq('( ( x * 2 ) * ( x ^ ( ( x * 2 ) - 1 ) ) )') }
+ it{ expect(d1.to_s).to eq('( ( 2 * x ) * ( x ^ ( ( 2 * x ) - 1 ) ) )') }
+ it{ expect(d2.to_s).to eq('( ( 2 * x ) * ( x ^ ( ( 2 * x ) - 1 ) ) )') }
end
context 'ex3' do
$c = (:t ^ 2) / 2
let(:d1){ dc/dt }