JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.31k stars 54 forks source link

Maybe bug #135

Closed JoshCheek closed 6 years ago

JoshCheek commented 6 years ago

IDK what's going on here, but when I added the = on line 13, this exploded. Maybe worth noting that I've set my SiB to run with specific flags (commas b/c it's actually an array of strings in Atom's settings) --alignment-strategy, file, --number-of-captures, 300, --line-length, 1000, --timeout, 12, --local-cwd, --ignore-unknown-flags

class Fixnum
  def inspect
    "%2d (%08b)" % [self, self]    # => " 0 (00000000)", " 2 (00000010)", " 8 (00001000)", "15 (00001111)", "15 (00001111)", " 2 (00000010)", "60 (00111100)", "15 (00001111)", " 2 (00000010)", "60 (00111100)"
  end                              # => :inspect
end                                # => :inspect

//=~$/                             # =>  0 (00000000)

$.-=~-~$.                          # =>  2 (00000010)
$.<<=$.                            # =>  8 (00001000)
$.-=-~-$.                          # => 15 (00001111)

$. <<= (                            # => 15 (00001111)
  -~-~$.-$.                        # =>  2 (00000010)
)                                  # => 60 (00111100)

$.                                 # => 15 (00001111)

-~-~$.-$.                          # =>  2 (00000010)

$.<<=-~-~$.-$.                     # => 60 (00111100)
$>.<<$&<<$.                        # => #<IO:<STDOUT>>
$>.<<$&<<~-~-~-~-~-~-~-~-~-$.<<$/  # => #<IO:<STDOUT>>

# >> <3