spec/lib/danica/function_spec.rb in danica-2.6.3 vs spec/lib/danica/function_spec.rb in danica-2.6.4
- old
+ new
@@ -256,21 +256,21 @@
context 'when a variable has value' do
let(:function) do
function_class.new(name: :f, x: { name: :x, value: 2 })
end
- it 'sohws the variable as number' do
- expect(function.to_gnu).to eq('f(2, y) = 2**(y)')
+ it 'hides the numver variable from name' do
+ expect(function.to_gnu).to eq('f(y) = 2**(y)')
end
end
context 'when a variable is a number' do
let(:function) do
function_class.new(name: :f, x: 2)
end
- it 'sohws the variable as number' do
- expect(function.to_gnu).to eq('f(2, y) = 2**(y)')
+ it 'hides the numver variable from name' do
+ expect(function.to_gnu).to eq('f(y) = 2**(y)')
end
end
end
end