Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 18, 2016 22:05
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/bf56609dd63f2a6c50a058a98eccf4cc to your computer and use it in GitHub Desktop.
Save Whateverable/bf56609dd63f2a6c50a058a98eccf4cc to your computer and use it in GitHub Desktop.
bisectable6
my @i; <a b c d e>.first(:k, <c e>.any).map: {@i.push: $_}; dd @i
Bisecting: 952 revisions left to test after this (roughly 10 steps)
[a5540ee5f08ac5e7fb5414a7b78bdd44c2f7c370] Bump NQP revision for loadbytecodebuffer on JVM
»»»»» Testing a5540ee5f08ac5e7fb5414a7b78bdd44c2f7c370
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing a6c12a7d881b85080535bd265ec23cb6a894b3b1
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 571982677bf2b9ff3629ecf9bb81e90ef09622ec
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 945b916821b8ece38d80a32c3bf4acf635a5c531
»»»»» Script output:
Array @i = [2, 4]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing 71f156e7e839bd694cdbee8fdbefef6d20af8460
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 77da2dcc6a3e2a5eeca0f3fac3f3cfd5b8d9fbc9
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5a7951661ea826349eab302b6ae9ae9025110f99
»»»»» Script output:
Array @i = [2, 4]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing a07a2e173cfc24f1bec549d2d5b79ef978e46b58
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 933e9a61c4479a41b993074d27036dfa32ef9a3f
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 3af93c42ccff6bcada1ff94ef0b8aba20239ac9b
»»»»» Script output:
Array @i = [2]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 157b46ec1108ad4620b984ad7a2bf35178fcc9ad
»»»»» Script output:
Array @i = [2, 4]
»»»»» Script exit code: 0
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
Array @i = [2]
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
157b46ec1108ad4620b984ad7a2bf35178fcc9ad is the first bad commit
commit 157b46ec1108ad4620b984ad7a2bf35178fcc9ad
Author: Elizabeth Mattijsen <liz@dijkmat.nl>
Date: Tue Aug 23 10:01:35 2016 +0300
Fix for RT #129044
If the Regex candidate needs to use .ACCEPTS, then it basically is
the same as the Mu candidate. However, since we also have a Callable
candidate, and Regex.isa(Callable), that doesn't work. So we abstract
the Mu candidate logic into two private methods, and call these from
both the Regex as well as the Mu candidate.
Also micro-optimize the :end versions, because assignment to $_ is
not needed for every iteration.
:040000 040000 cc71477340550b1325ec2d0a253587da0ca97cf5 e4ee0b9e1a7129e86a12a8e60ab54ae4e1997341 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment