Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 10, 2021 10:22
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/223dba45e4b44e3d9a22ead7dc070b2a to your computer and use it in GitHub Desktop.
Save Whateverable/223dba45e4b44e3d9a22ead7dc070b2a to your computer and use it in GitHub Desktop.
bisectable6
my Array enum PageSizes «:Letter[0,0,612,792] :Tabloid[0,0,792,1224]»; dd (PageSizes::Letter).value.pairs; dd (PageSizes::Letter).pairs;
Bisecting: 73 revisions left to test after this (roughly 6 steps)
[fe133c2bb0864cbce14a69331551097daabe0ed0] Let Seq use the new helper methods
»»»»» Testing fe133c2bb0864cbce14a69331551097daabe0ed0
»»»»» Script output:
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 333c7e2bdf64e3ffdee5c1007ec9ebc962cfa396
»»»»» Script output:
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
Ambiguous call to 'pairs(PageSizes: )'; these signatures all match:
(Enumeration: *%_)
(List:D: *%_)
in block <unit> at /tmp/vy4MUjNWFj line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» 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 496f986e6ccbf6bb45f81750751d16272c47f92d
»»»»» Script output:
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 ff6dc2a73019f66e4f1304a24b2a847dc99bb6f8
»»»»» Script output:
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 bebc82f38c481d1a69d550565a87e3eaa49af5c1
»»»»» Script output:
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 615030d279d9caba6bacb397107387cd6aaef410
»»»»» Script output:
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
Ambiguous call to 'pairs(PageSizes: )'; these signatures all match:
(Enumeration: *%_)
(List:D: *%_)
in block <unit> at /tmp/vy4MUjNWFj line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» 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 3a11293871f62ae984dea836827f760d038d0b1f
»»»»» Script output:
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
(0 => 0, 1 => 0, 2 => 612, 3 => 792).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
615030d279d9caba6bacb397107387cd6aaef410 is the first new commit
commit 615030d279d9caba6bacb397107387cd6aaef410
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Fri Mar 5 13:22:15 2021 +0100
Same effect by dispatch
As pointed out by vrurg++ TIL I learned about the Enumeration role.
:040000 040000 8c24872fce9bd7bf0c093432053b133f50b3d014 a17c9dde20cc7d8103a0e79f35ec829f814fc5ca M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment