Sha256: e2f6759ae5c9813ffb751a32842c0cd83b782d2b80b60e8376354b664c4bf72c

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

difficulty 3
description "A bug was introduced somewhere along the way. You know that running `ruby prog.rb 5` should output 15. You can also run `make test`. What are the first 7 chars of the hash of the commit (the abbreviated hash) that introduced the bug?"

setup do
  init_from_level
  repo.init
  system "git branch -m master"
end

solution do
  "18ed2ac" == request("What are the first 7 characters of the hash of the commit that introduced the bug?")[0..6]
end

hint do
  puts ["The fastest way to find the bug is with bisect.", "Don't forget to start bisect first, identify a good or bad commit, then run `git bisect run make test`."]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
githug-0.5.1 levels/bisect.rb