spec/iq_spec.rb in qlang-0.0.141 vs spec/iq_spec.rb in qlang-0.0.1414

- old
+ new

@@ -46,10 +46,12 @@ end describe 'Function' do it do expect(Iq.execute('f(x, y) = x + y')).to eq(f(x, y) <= x + y) + expect(Iq.execute('f( 4, 5 )')).to eq(9) expect(Iq.execute('g(x) = x ** 2')).to eq(g(x) <= x ** 2) + expect(Iq.execute('g(2)')).to eq(4) end end end end