Created
December 3, 2019 21:22
-
-
Save andrew-aladev/baa5d3ebe7718853756f75a5074e90b5 to your computer and use it in GitHub Desktop.
Ruby line coverage bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = 2 | |
raise StandardError if a.zero? | |
a -= 1 until a.zero? | |
puts a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "coverage" | |
Coverage.start | |
require_relative "cov" | |
pp Coverage.result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment