Skip to content

Commit eb36e67

Browse files
committed
Functions tests
1 parent 43a13ff commit eb36e67

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

spec/functions_spec.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,44 @@
231231
end
232232
end
233233

234+
describe '#lambertw' do
235+
context 'calculation of lambertw -e**-1' do
236+
it 'returns -1' do
237+
f = SymEngine::lambertw(-@e**(-1))
238+
expect(f).to eql(-1)
239+
end
240+
end
241+
end
242+
243+
describe '#zeta' do
244+
context 'calculation of zeta zero' do
245+
it 'returns minus half' do
246+
f = SymEngine::zeta(0)
247+
r1 = SymEngine::Integer.new(-1)
248+
r2 = SymEngine::Integer.new(2)
249+
r = r1/r2
250+
expect(f).to eql(r)
251+
end
252+
end
253+
end
254+
255+
describe '#dirichlet_eta' do
256+
context 'calculation of dirichlet_eta 1' do
257+
it 'returns log(2)' do
258+
f = SymEngine::dirichlet_eta(1)
259+
expect(f.to_s).to eql('log(2)')
260+
end
261+
end
262+
end
263+
264+
describe '#gamma' do
265+
context 'calculation of gamma 1' do
266+
it 'returns one' do
267+
f = SymEngine::gamma(1)
268+
expect(f.to_s).to eql('1')
269+
end
270+
end
271+
end
272+
234273
end
235274
end

symengine_version.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
e5852bf07ed6c9a344fea8da4cd5a11b803194e8
2-
1+
46f54aeafbf2a93be0c8b1d492666f56f0ccbe73

0 commit comments

Comments
 (0)