Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 5, 2020 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/f6078fb7ff7c40b0e22f25a3449e46bf to your computer and use it in GitHub Desktop.
Save Whateverable/f6078fb7ff7c40b0e22f25a3449e46bf to your computer and use it in GitHub Desktop.
bisectable6
class C is Exception { }; C.new.throw
Bisecting: 5832 revisions left to test after this (roughly 13 steps)
[f8edb8295773acd41432e4f85424f5eb7245dbd7] Document test helpers
»»»»» Testing f8edb8295773acd41432e4f85424f5eb7245dbd7
»»»»» Script output:
Died with C
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 8104ff314b470dbb4a0465d595d5e3ba4745c7f2
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2f22b701d4cf44fa43500edcc3450718fa7fd468
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 1ce8071e5eae009bc082acd2352c8660d086ad1d
»»»»» Script output:
Died with C
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 99421d4caa05ae952020a6d918f94fc7b68f2305
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 79ce1a991f044e381ba4d17b4dd850fa0c9bbedc
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing cb80390f791b476d7d5bf1dba91850bd89c28394
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 125bc437df248f91066a0cae08a16d20e318ab2f
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c9ee86f4585c5923a0f231a25e914bd526d9a148
»»»»» Script output:
Died with C
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b391692644d1d3e66fd18c675f78ed65f613ea97
»»»»» Script output:
Died with C
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a2090821b434b9f47439ffa33dadbdcd05962856
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 60b9acef30d376f233b782020bc1245ad48918eb
»»»»» Script output:
Died with C
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e1e9091f7484ee124b063a9c12f9bb5742bf077b
»»»»» Script output:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 1a4d94930c581e915a2351049e8ee12246c4c26c
»»»»» Script output:
Died with C
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
C exception produced no message
in block <unit> at /tmp/aNMWGft0C9 line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
1a4d94930c581e915a2351049e8ee12246c4c26c is the first new commit
commit 1a4d94930c581e915a2351049e8ee12246c4c26c
Author: Daniel Green <ddgreen@gmail.com>
Date: Sat Jul 8 08:58:14 2017 -0400
Only create Exception messages when gisting
With the recent change to suggest similar method names when throwing
X::Method::NotFound, it got a lot slower to try possible methods (e.g.,
`try Int.sin`) even if you didn't care about the exception message. This
commit removes the .message call from .throw and puts it in both
branches of .gist.
:040000 040000 31cbbef4ae5e04550575e41739201430ecbb317c 89cce42188fc0e254b7bdbd01696f25f6bce2091 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment