spec/lib/function_spec.rb in dydx-0.1.1 vs spec/lib/function_spec.rb in dydx-0.1.2
- old
+ new
@@ -28,6 +28,12 @@
it{ expect(h(a, b, c) <= d/db(g(a, b))).to eq(h(a, b, c)) }
it{ expect(h(a, b, c) <= d/db(g(a, b))).to eq($h) }
it{ expect(h(a, b, c)).to eq(( ( 2 * b ) + a )) }
it{ expect(h(a, b, c).algebra).to eq(( ( 2 * b ) + a )) }
+
+ it 'ex.4' do
+ $f = nil
+ f(x) <= log(x)
+ expect(f(a)).to eq(log(a))
+ end
end