Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 16, 2017 22:27
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/605de7ad6fbb48f6211a28778dc8a4d0 to your computer and use it in GitHub Desktop.
Save Whateverable/605de7ad6fbb48f6211a28778dc8a4d0 to your computer and use it in GitHub Desktop.
bisectable6
my @x = 6,8,9,3,42,5,-5,0,2; say @x.minpairs
Bisecting: 1566 revisions left to test after this (roughly 11 steps)
[4551803db6c757dfae8a6b1cfe73c68f83d38faf] Streamline .first iterating (about 10% faster)
»»»»» Testing 4551803db6c757dfae8a6b1cfe73c68f83d38faf
»»»»» Script output:
[6 => -5]
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 9f9f0b2873258fbe40bf28f271e975327ab84b2a
»»»»» Script output:
[6 => -5]
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing cd62316ccd6eb5014f915cf958c0f7d42671de15
»»»»» Script output:
Method 'minpairs' not found for invocant of class 'Array'
in block <unit> at /tmp/m2dAFAGiNx line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 99cd58b63b35b2b2c0cbe78123b39cdd332e1b03
»»»»» Script output:
Method 'minpairs' not found for invocant of class 'Array'
in block <unit> at /tmp/m2dAFAGiNx line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 7d4b3a3d051f27dc959e3ae6c749a853ef38b09a
»»»»» Script output:
Method 'minpairs' not found for invocant of class 'Array'
in block <unit> at /tmp/m2dAFAGiNx line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 1cb2e8d9e71797f576b3ffc01129a196e30a9bad
»»»»» Script output:
[6 => -5]
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0e95cdeafc37891b4e63e35ccc9e50933399627c
»»»»» Script output:
Method 'minpairs' not found for invocant of class 'Array'
in block <unit> at /tmp/m2dAFAGiNx line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 61d231c5d139801c95039f11d0cd09bc5162c397
»»»»» Script output:
Method 'minpairs' not found for invocant of class 'Array'
in block <unit> at /tmp/m2dAFAGiNx line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a93edd9f0196dc79444b6180fe27a598558b105d
»»»»» Script output:
[6 => -5]
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0c78181bcb7b93c226302d75cfe9de5b1f95f9ac
»»»»» Script output:
[6 => -5]
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 7024e87d469ec9641368e10fc2dda143ce23530d
»»»»» Script output:
[6 => -5]
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing dc9552dc218e49f1957035f4a194fbb0aa79c7b4
»»»»» Script output:
Method 'minpairs' not found for invocant of class 'Array'
in block <unit> at /tmp/m2dAFAGiNx line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
7024e87d469ec9641368e10fc2dda143ce23530d is the first new commit
commit 7024e87d469ec9641368e10fc2dda143ce23530d
Author: Elizabeth Mattijsen <liz@dijkmat.nl>
Date: Fri Apr 8 14:44:10 2016 +0200
Move minpairs/maxpairs to Any
Anything that can do .pairs, can now also do .minpairs and .maxpairs
(assuming the values can do > < ==)
:040000 040000 b263a3b7fdb94d558bcb121503bf3344010967b1 6bdf298d4bbb24c2d1a7f9e6fcf9136b0ef49e5c M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment