Sha256: 5db78b6f96ac2315e817217e15f0c9eeaa399efeddc3ea58284d22daf1a474e8
Contents?: true
Size: 1.03 KB
Versions: 14
Compression:
Stored size: 1.03 KB
Contents
gcd.rb:4 def gcd(a, b) # # *************************************************** # # This tests step, next, finish and continue # # *************************************************** # set debuggertesting on Currently testing the debugger is on. # set callstyle last Frame call-display style is last. # next gcd.rb:18 gcd(3,5) # where --> #0 at line gcd.rb:18 # step a Step argument 'a' needs to be a number. # set forcestep on force-stepping is on. # step- ; step- gcd.rb:6 if a > b # set forcestep off force-stepping is off. # where --> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6 #1 at line gcd.rb:18 # next gcd.rb:10 return nil if a <= 0 # step+ gcd.rb:12 if a == 1 or b-a == 0 # where --> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:12 #1 at line gcd.rb:18 # step 3 gcd.rb:10 return nil if a <= 0 # step+ gcd.rb:12 if a == 1 or b-a == 0 # where --> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:12 #1 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:15 #2 at line gcd.rb:18 # next+ gcd.rb:15 gcd(b-a, a) # # finish # quit
Version data entries
14 entries across 14 versions & 1 rubygems