Skip to content

Commit f6afe2c

Browse files
committed
Export integer_partitions (no longer overloading Base function)
1 parent cd8dde3 commit f6afe2c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/partitions.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#Generative algorithms
22

3-
import Base: integer_partitions
4-
5-
export cool_lex, ncpartitions
3+
export cool_lex, integer_partitions, ncpartitions
64

75
# Lists the partitions of the number n, the order is consistent with GAP
86
function integer_partitions(n::Integer)

test/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ using Base.Test
4848

4949
# integer_partitions
5050
@test integer_partitions(5) == {[1, 1, 1, 1, 1], [2, 1, 1, 1], [2, 2, 1], [3, 1, 1], [3, 2], [4, 1], [5]}
51-
@test_throws integer_partitions(-1)
51+
@test_throws partitions(-1)
5252

0 commit comments

Comments
 (0)