summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormo <mokha@cisco.com>2017-06-07 13:52:16 -0600
committermo <mokha@cisco.com>2017-06-07 13:52:16 -0600
commit1e59e1e2a5f6cd3d67212c07413fbff19a70c139 (patch)
treec0d706ad30f8707edab4bba979831d6ef106b109 /lib
parentdc969c5748d87d927c7883c956a13c6f7e63a4ad (diff)
add another example of gcd.
Diffstat (limited to 'lib')
-rw-r--r--lib/gcd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gcd.rb b/lib/gcd.rb
index 9cf4771..267f60e 100644
--- a/lib/gcd.rb
+++ b/lib/gcd.rb
@@ -5,5 +5,5 @@ def gcd(p, q)
gcd(q, p % q)
end
-
fail unless gcd(1440, 408) == 24
+fail unless gcd(102, 68) == 34