Skip to content

Commit 91b414b

Browse files
committed
Fixing the function_symbol_spec.rb
1 parent 6b32db9 commit 91b414b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

spec/function_symbol_spec.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@
1919
context '#diff' do
2020
let(:fun) { (SymEngine::FunctionSymbol.new('f', 2*x, y, SymEngine::sin(z))) }
2121
context 'by variable' do
22-
subject { fun.diff(x)/2 }
23-
it { is_expected.to be_a SymEngine::Subs }
24-
end
25-
26-
context 'by constant' do
27-
subject { fun.diff(2) }
28-
it { is_expected.to be_nil }
29-
end
22+
subject { fun.diff(x)/2 }
23+
it { is_expected.to be_a SymEngine::Subs }
24+
end
3025
end
3126
end
3227

0 commit comments

Comments
 (0)