Skip to content

Commit 6c0fe5d

Browse files
committed
Spec for UndefFunction and it's call method
1 parent 8a298f0 commit 6c0fe5d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/function_symbol_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
it { is_expected.to be_a SymEngine::Subs }
2424
end
2525
end
26+
27+
context 'Initializing with UndefFunctions' do
28+
let(:fun) { SymEngine::Function('f') }
29+
context 'UndefFunction' do
30+
subject { fun }
31+
it { is_expected.to be_a SymEngine::UndefFunction }
32+
end
33+
context 'using call method for UndefFunction' do
34+
subject { fun.(x, y, z) }
35+
it { is_expected.to be_a SymEngine::FunctionSymbol }
36+
end
37+
end
2638
end
2739

2840

0 commit comments

Comments
 (0)