spec/dydx_spec.rb in dydx-0.0.8 vs spec/dydx_spec.rb in dydx-0.0.9
- old
+ new
@@ -34,6 +34,14 @@
let(:d1){ df/dz }
let(:d2){ d/dz($f) }
it{ expect(d1.to_s).to eq('( 4 * ( e ^ ( 2 * z ) ) )') }
it{ expect(d2.to_s).to eq('( 4 * ( e ^ ( 2 * z ) ) )') }
end
+
+ context 'ex5' do
+ $f = 2 * (e ^ (2 * z))
+ let(:d1){ df/dz }
+ let(:d2){ d/dz($f) }
+ it{ expect(d1.to_s).to eq('( 4 * ( e ^ ( 2 * z ) ) )') }
+ it{ expect(d2.to_s).to eq('( 4 * ( e ^ ( 2 * z ) ) )') }
+ end
end