aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Sommrey <28217714+jo-37@users.noreply.github.com>2021-08-13 23:17:04 +0200
committerJörg Sommrey <28217714+jo-37@users.noreply.github.com>2021-08-13 23:20:54 +0200
commit2c4257ae764f03b9de85ab3457614b4a6175c324 (patch)
tree83d24e89c2ef6e7bc466007e3ffc4eede5bec2f3
parentbd23bc13ab9a988e3999fe080a81579c75cf0a55 (diff)
downloadperlweeklychallenge-club-2c4257ae764f03b9de85ab3457614b4a6175c324.tar.gz
perlweeklychallenge-club-2c4257ae764f03b9de85ab3457614b4a6175c324.tar.bz2
perlweeklychallenge-club-2c4257ae764f03b9de85ab3457614b4a6175c324.zip
Add larger example to task 1
-rwxr-xr-xchallenge-125/jo-37/perl/ch-1.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/challenge-125/jo-37/perl/ch-1.pl b/challenge-125/jo-37/perl/ch-1.pl
index 8ab6939963..3b9f2aae65 100755
--- a/challenge-125/jo-37/perl/ch-1.pl
+++ b/challenge-125/jo-37/perl/ch-1.pl
@@ -119,6 +119,9 @@ sub run_tests {
bag {item [224, 30, 226]; item [16, 30, 34]; etc}, 'as y';
like [find_pythagorean_triples(13)],
bag {item [5, 12, 13]; etc}, 'as z';
+ like [find_pythagorean_triples(15485863)],
+ bag {item [15485863, 119905976427384, 119905976427385]; end},
+ '1000000-th prime';
}
done_testing;