From 93f6ccbd50f3641a1c0dbd95c3c29404ac944428 Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Mon, 5 Jan 2015 15:21:39 +0000 Subject: [PATCH] TST fix 32bit bits test, add comment to interesting binomial result --- test/combinatorics.jl | 2 +- test/intfuncs.jl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/combinatorics.jl b/test/combinatorics.jl index 0e3bd5cc3e559..c6d3c8ce9e7a5 100644 --- a/test/combinatorics.jl +++ b/test/combinatorics.jl @@ -3,7 +3,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 diff --git a/test/intfuncs.jl b/test/intfuncs.jl index e7cae0ef1ebcd..8d1fce1084df6 100644 --- a/test/intfuncs.jl +++ b/test/intfuncs.jl @@ -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]