Skip to content

Commit 318bbfe

Browse files
committed
sin,cos,tan tests
1 parent 92f42d2 commit 318bbfe

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

spec/functions_spec.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
require 'spec_helper'
2+
3+
describe SymEngine do
4+
before :each do
5+
end
6+
7+
describe 'Function' do
8+
before :each do
9+
@pi = SymEngine::PI
10+
@e = SymEngine::E
11+
@one = SymEngine::Integer.new(1)
12+
@zero = SymEngine::Integer.new(0)
13+
@two = SymEngine::Integer.new(2)
14+
@minone = SymEngine::Integer.new(-1)
15+
@x = SymEngine::Symbol.new("x");
16+
end
17+
18+
describe '#sin' do
19+
context 'calculation of sin pi' do
20+
it 'returns zero' do
21+
f = SymEngine::sin(@pi)
22+
expect(f).to eql(0)
23+
24+
end
25+
end
26+
end
27+
28+
end
29+
end

0 commit comments

Comments
 (0)