Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 8, 2017 15:08
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/137094bde350259bcb8f11cc691679e0 to your computer and use it in GitHub Desktop.
Save Whateverable/137094bde350259bcb8f11cc691679e0 to your computer and use it in GitHub Desktop.
bisectable6
old=2016.10 new=HEAD m: dd (($++ ?? 42 !! |()) xx *)[^3]
Bisecting: 719 revisions left to test after this (roughly 10 steps)
[b0e61f32b889a9e63ffaf30c60f92616550795e3] Restore fast-path for negative k in combinations()
»»»»» Testing b0e61f32b889a9e63ffaf30c60f92616550795e3
»»»»» Script output:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing dd1cb5fc9aa885de94483d5bc2b5c481f2497382
»»»»» Script output:
(Nil, Nil, Nil)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing aba04b1ac4426b6df8179b1a8720e0ff2f17e5d1
»»»»» Script output:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a423edaf3075f3987a3f5ed7ceb8a3c4c38d7127
»»»»» Script output:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b7c6e73916d136ff843a47b217b2299bd3674bbb
»»»»» Script output:
(Nil, Nil, Nil)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a1c7d01502249bd8bdae5a70ec85847609ca1aba
»»»»» Script output:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 8729048c3fe319daa2bbd65e4e0fd24eafa02873
»»»»» Script output:
(Nil, Nil, Nil)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 15753fd3c34d16ffa3dead1b3708ef8a945ad287
»»»»» Script output:
(Nil, Nil, Nil)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c3c86dcf51acdc66627aeba92ffd40efc1c68059
»»»»» Script output:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4e49ec135dda93676ceb95f4ade7496139c2bef7
»»»»» Script output:
(Nil, Nil, Nil)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing d71bf1e90cce11e71cded531a383fb6299ebac78
»»»»» Script output:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(Failure.new(exception => X::Cannot::Empty.new(action => "shift", what => "Array"), backtrace => Backtrace.new), 42, 42)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
4e49ec135dda93676ceb95f4ade7496139c2bef7 is the first new commit
commit 4e49ec135dda93676ceb95f4ade7496139c2bef7
Author: Zoffix Znet <cpan@zoffix.com>
Date: Sun Jan 22 13:45:33 2017 -0500
Fix infix:<xx>(..., *) for empty Slips
The current code makes the assumption that when a Slip is encountered,
it is non-empty, and it saves it in an Array and shifts from that array,
to obtain next value. This causes a Failure when the Slip is empty and
there is nothing to shift.
Fix by checking whether we can shift and returning IterationEnd if can't.
Fixes RT#130619: https://rt.perl.org/Ticket/Display.html?id=130619
:040000 040000 04f3814641742730064cd2419dcf5cb408116772 31c0bb2664031f52b2e79f943598073f369f34df M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment