Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created June 6, 2025 21:44
Show Gist options
  • Save Whateverable/9f29b5e7bba97564d2fb40f9f0b6bea3 to your computer and use it in GitHub Desktop.
Save Whateverable/9f29b5e7bba97564d2fb40f9f0b6bea3 to your computer and use it in GitHub Desktop.
bisectable6
sub testit($/, $x) { if $x { make Empty } else { make () } }; "hi" ~~ /./; testit($/, False); say $/.made.perl; say $/.made eqv Empty; testit($/, True); say $/.made.perl; say $/.made eqv Empty
Bisecting: 204 revisions left to test after this (roughly 8 steps)
[8ab6e019c67df6bd37630a251b72b87558014c13] Make R:I.DwimIterator a method
»»»»» Testing 8ab6e019c67df6bd37630a251b72b87558014c13
»»»»» Script output:
()
False
slip()
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 1dc34d847102ad71e100112ae92ad50d9f2e96d4
»»»»» Script output:
()
False
Empty
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 870b11b759379f9bc29d96d581f91b852dca0bf3
»»»»» Script output:
()
False
Empty
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 823f0f7f6bcdc57cbc40946dac22c89c34e23bb0
»»»»» Script output:
()
False
slip()
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c0ac0e901724813e69dee1a394db02e95dcdfde3
»»»»» Script output:
()
False
slip()
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing f6303d7beb2f4f83b09e5552e8c054bd06824414
»»»»» Script output:
()
False
slip()
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing ebe9147013345affa1bf4bade21d05ec759e1cf2
»»»»» Script output:
()
False
slip()
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing fbbe446c64fbf98f3fc7e64016e5213a3ee1f09f
»»»»» Script output:
()
False
Empty
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing ec0258a44d9878d613a76bfa7518c60f04425dff
»»»»» Script output:
()
False
Empty
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
()
False
slip()
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
ec0258a44d9878d613a76bfa7518c60f04425dff is the first new commit
commit ec0258a44d9878d613a76bfa7518c60f04425dff
Author: Elizabeth Mattijsen <[email protected]>
Date: Sun Jan 8 21:47:44 2017 +0100
Give Empty its own .perl output
- for easier debugging
- for faster .perl output for Empty
- and yes, it roundtrips ok
This breaks two spectests that were specifically checking for .perl
returning "slip()". I consider those tests to be sub-optimal :-)
src/core/Slip.pm | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment