Skip to content

Commit f04d493

Browse files
committed
Add tests for stirlings1 and stirlings2 with large arguments
1 parent 11fd77b commit f04d493

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/numbers.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
@test stirlings1(6, 6) == 1
5252
@test stirlings1(6, 6, true) == 1
5353
@test sum([abs(stirlings1(8, i, true)) for i = 0:8]) == factorial(8)
54+
@test stirlings1(big"26", 10) == 196928100451110820242880
5455

5556
# stirlings2
5657
@test_throws DomainError stirlings2(-1, 1)
@@ -65,6 +66,7 @@
6566
@test stirlings2(6, 4) == 65
6667
@test stirlings2(6, 5) == 15
6768
@test stirlings2(6, 6) == 1
69+
@test stirlings2(big"26", 10) == 13199555372846848005
6870

6971
# bell
7072
@test bellnum.(0:10) == [

0 commit comments

Comments
 (0)