Sha256: 075e530d3be0edc965d2da3ac598ed5479e40e8012382003734136b01a26f41c

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

-- (gcd.rb:4)
def gcd(a, b)
debugger testing is on.
+ stepping.cmd line 5: set callstyle last
Frame call-display style is last.
+ stepping.cmd line 6: next
-- (gcd.rb:18)
gcd(3,5)
+ stepping.cmd line 7: where
--> #0 at line gcd.rb:18
+ stepping.cmd line 8: step a
*** The step command argument must eval to an integer. Got: a
+ stepping.cmd line 9: set different on
different is on.
+ stepping.cmd line 10: step- ;; step-
-- (gcd.rb:6)
if a > b
-- (gcd.rb:10)
return nil if a <= 0
+ stepping.cmd line 11: set diff off
different is off.
+ stepping.cmd line 12: where
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:10
    #1 at line gcd.rb:18
+ stepping.cmd line 13: n 2
-- (gcd.rb:15)
return gcd(b-a, a)
+ stepping.cmd line 14: step+
-- (gcd.rb:6)
if a > b
+ stepping.cmd line 15: where
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
    #1 at line gcd.rb:15
    #2 at line gcd.rb:18
+ stepping.cmd line 16: step 3
-- (gcd.rb:15)
return gcd(b-a, a)
+ stepping.cmd line 17: step+
-- (gcd.rb:6)
if a > b
+ stepping.cmd line 18: where
--> #0 Object.gcd(a#Fixnum, b#Fixnum) at line gcd.rb:6
    #1 at line gcd.rb:15
    #2 at line gcd.rb:15
    #3 at line gcd.rb:18
+ stepping.cmd line 19: next+	
-- (gcd.rb:10)
return nil if a <= 0
+ stepping.cmd line 20: # finish
+ stepping.cmd line 21: quit!

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rb8-trepanning-0.1.6 test/data/stepping-1.9.right
rb8-trepanning-0.1.5 test/data/stepping-1.9.right
rb8-trepanning-0.1.4 test/data/stepping-1.9.right
rb8-trepanning-0.1.3 test/data/stepping-1.9.right
rb8-trepanning-0.1.3-universal-ruby-1.9.2 test/data/stepping-1.9.right
rb8-trepanning-0.1.3-universal-ruby-1.8.7 test/data/stepping-1.9.right