~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to test/bigint.jl

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-01-16 12:29:42 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130116122942-x86e42akjq31repw
Tags: 0.0.0+20130107.gitd9656f41-1
* New upstream snashot
* No longer try to rebuild helpdb.jl.
   + debian/rules: remove helpdb.jl from build-arch rule
   + debian/control: move back python-sphinx to Build-Depends-Indep
* debian/copyright: reflect upstream changes
* Add Build-Conflicts on libatlas3-base (makes linalg tests fail)
* debian/rules: replace obsolete USE_DEBIAN makeflag by a list of
  USE_SYSTEM_* flags
* debian/rules: on non-x86 systems, use libm instead of openlibm
* dpkg-buildflags.patch: remove patch, applied upstream
* Refreshed other patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cd("../extras") do
2
 
require("bigint")
3
 
 
4
 
a=BigInt("123456789012345678901234567890")
5
 
b=BigInt("123456789012345678901234567891")
 
1
require("gmp")
 
2
 
 
3
using GMP
 
4
 
 
5
a = BigInt("123456789012345678901234567890")
 
6
b = BigInt("123456789012345678901234567891")
6
7
 
7
8
@test typeof(a+1) == BigInt
8
9
@test a+1 == b
48
49
@test factorial(BigInt(40)) == BigInt("815915283247897734345611269596115894272000000000")
49
50
@test binomial(BigInt(-53), 42) == BigInt("959509335087854414441273718")
50
51
@test binomial(BigInt(113), BigInt(42)) == BigInt("18672199984318438125634054194360")
51
 
 
52
 
end # cd