Skip to content

Instantly share code, notes, and snippets.

@leto
Created June 2, 2009 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leto/122085 to your computer and use it in GitHub Desktop.
Save leto/122085 to your computer and use it in GitHub Desktop.
(kadath)(~/git/Math-Primality funky )$ perl -d t/is_strong_lucas_pseudoprime.t
Loading DB routines from perl5db.pl version 1.3
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
1..12
main::(t/is_strong_lucas_pseudoprime.t:10):
10: ok(is_strong_lucas_pseudoprime(2), "is_strong_lucas_pseudoprime should return true for 2");
DB<1> c
ok 1 - is_strong_lucas_pseudoprime should return true for 2
ok 2 - is_strong_lucas_pseudoprime should handle Math::GMPz objects # TODO is_strong_lucas_psuedoprime is being worked on
Inappropriate argument supplied to new() at /opt/local/lib/perl5/site_perl/5.10.0/darwin-2level/Math/GMPz.pm line 164.
at /opt/local/lib/perl5/site_perl/5.10.0/darwin-2level/Math/GMPz.pm line 164
Math::GMPz::new('Math::GMPz', undef) called at lib/Math/Primality.pm line 190
Math::Primality::is_strong_lucas_pseudoprime(705) called at t/is_strong_lucas_pseudoprime.t line 17
# Looks like you planned 12 tests but ran 2.
# Looks like your test exited with 255 just after 2.
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
DB<1> bt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment