Skip to content

Commit

Permalink
TST fix 32bit bits test, add comment to interesting binomial result
Browse files Browse the repository at this point in the history
  • Loading branch information
hayd committed Jan 5, 2015
1 parent 1d1e68e commit 5ee5986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/combinatorics.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@test binomial(5,3) == 10
@test binomial(2,1) == 2
@test binomial(1,2) == 0
@test binomial(-2,1) == -2
@test binomial(-2,1) == -2 # let's agree
@test binomial(2,-1) == 0

#Issue 6154
Expand Down
5 changes: 3 additions & 2 deletions test/intfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@

@test hex(12) == "c"
@test hex(-12, 3) == "-00c"
@test num2hex(1243) == "00000000000004db"
@test num2hex(1243) == (Int == Int32 ? "000004db" : "00000000000004db")

@test base(2, 5, 7) == "0000101"

@test bits(1035) == "0000000000000000000000000000000000000000000000000000010000001011"
@test bits(1035) == (Int == Int32 ? "00000000000000000000010000001011" :
"0000000000000000000000000000000000000000000000000000010000001011")

@test digits(4, 2) == [0, 0, 1]
@test digits(5, 3) == [2, 1]
Expand Down

0 comments on commit 5ee5986

Please sign in to comment.