Skip to content

Commit 2b68e5b

Browse files
andrionijiahao
authored andcommitted
Require julia 0.2-, fix up everything
1 parent 35ce4dd commit 2b68e5b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
julia 0.2-
12
Polynomial

src/youngdiagrams.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function isrimhook(ξ::SkewDiagram)
3636
if n>m error("Cannot construct skew diagram") end
3737
#Construct matrix representation of diagram
3838
#XXX This is a horribly inefficient way of checking condition 1!
39-
l = max(λ)
39+
l = maximum(λ)
4040
youngdiagram=zeros(Int64, m, l)
4141
for i=1:n
4242
youngdiagram[i, μ[i]+1:λ[i]]=1
@@ -79,7 +79,7 @@ function leglength(ξ::SkewDiagram)
7979
λ, μ = ξ
8080
m, n = length(λ), length(μ)
8181
#Construct matrix representation of diagram
82-
l = max(λ)
82+
l = maximum(λ)
8383
youngdiagram=zeros(Int64, m, l)
8484
for i=1:n
8585
youngdiagram[i, μ[i]+1:λ[i]]=1

test/Catalan_test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ using Base.Test
4444
# bell
4545
@test bell(7) == 877
4646
@test bell(42) == BigInt("35742549198872617291353508656626642567")
47-
@test_fails bell(-1)
47+
@test_throws bell(-1)
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_fails integer_partitions(-1)
51+
@test_throws integer_partitions(-1)
5252

5353
include("youngdiagrams.jl")

0 commit comments

Comments
 (0)