Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created November 1, 2024 23:35
Show Gist options
  • Save Whateverable/49f0b184a33736d3f85e7f50e7a8e1f7 to your computer and use it in GitHub Desktop.
Save Whateverable/49f0b184a33736d3f85e7f50e7a8e1f7 to your computer and use it in GitHub Desktop.
bisectable6
old=2024.09 my $s = "foobar"; $s.substr-rw(6, 0) = "yyy"; say $s
Bisecting: 78 revisions left to test after this (roughly 6 steps)
[000319123601dda4e7ada7ef3c554e91e916c5be] Add support for non-consecuive ranges in .succ/.pred
»»»»» Testing 000319123601dda4e7ada7ef3c554e91e916c5be
»»»»» Script output:
foobaryyy
»»»»» 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 a6450e4519b0019697c35d831065e1808d99a561
»»»»» Script output:
foobaryyy
»»»»» 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 ff50e3297e4692216bfa83b1c1f1494b61725c66
»»»»» Script output:
foobaryyy
»»»»» 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 da291b5501f0cfe6528197baf1b0a54fe18bf394
»»»»» Script output:
foobaryyy
»»»»» 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 450d54868e5fb037e435e9dde62b88d37fc6c165
»»»»» Script output:
Start argument to substr out of range. Is: 6, should be in 0..6; use *-6 if you want to index relative to the end
in block <unit> at /tmp/VNYtB2N0Ot 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 6182ed580bcbb05862747d14dcd79c6ffc4fe13c
»»»»» Script output:
Start argument to substr out of range. Is: 6, should be in 0..6; use *-6 if you want to index relative to the end
in block <unit> at /tmp/VNYtB2N0Ot 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 c32cb4f6a3d8efeac06eb4ae4b0eb2527ecbdf02
»»»»» Script output:
foobaryyy
»»»»» 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”
6182ed580bcbb05862747d14dcd79c6ffc4fe13c is the first new commit
commit 6182ed580bcbb05862747d14dcd79c6ffc4fe13c
Author: Elizabeth Mattijsen <liz@raku.rocks>
Date: Sat Oct 26 12:20:04 2024 +0200
Re-imagine .substr-rw handling
- more geared towards new-disp using multiple candidates and a
private method doing the actual work
- added support for Callable and Cool values for width
Fixes #1720
src/core.c/Cool.rakumod | 12 ++---
src/core.c/Str.rakumod | 114 ++++++++++++++++++++++++++----------------------
2 files changed, 65 insertions(+), 61 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment