spec/dydx_spec.rb in dydx-0.0.9 vs spec/dydx_spec.rb in dydx-0.1.0

- old
+ new

@@ -28,20 +28,12 @@ it{ expect(d1.to_s).to eq('t') } it{ expect(d2.to_s).to eq('t') } end context 'ex4' 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 - - context 'ex5' do - $f = 2 * (e ^ (2 * z)) - let(:d1){ df/dz } - let(:d2){ d/dz($f) } + $i = 2 * (e ^ (2 * :z)) + let(:d1){ di/dz } + let(:d2){ d/dz($i) } it{ expect(d1.to_s).to eq('( 4 * ( e ^ ( 2 * z ) ) )') } it{ expect(d2.to_s).to eq('( 4 * ( e ^ ( 2 * z ) ) )') } end end