Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 14, 2022 19:06
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/344e42bec8bed2259de7b78852b29973 to your computer and use it in GitHub Desktop.
Save Whateverable/344e42bec8bed2259de7b78852b29973 to your computer and use it in GitHub Desktop.
bisectable6
old=2021.10 new=HEAD sub plural ($x, $n) { $x ~ ($n - 1 ?? 's' !! '') }; say "$_ { plural 'dog', $_ }" for ^3;
Bisecting: 138 revisions left to test after this (roughly 7 steps)
[27082897b2c22d3b19324c5574d181c983a46377] Explicitly handle containerization in X::Method::NotFound
»»»»» Testing 27082897b2c22d3b19324c5574d181c983a46377
»»»»» Script output:
0 dogs
1 dog
2 dogs
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4b2fc66fce2ec328cfdeb1e373adc8c975d13e8a
»»»»» Script output:
WARNINGS for /tmp/D28w8y9Viy:
0 dogs
1 dog
2 dogs
Potential dead code, the '?? !!' is gobbling up the result of the '&infix:<->' (line 1)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0ab6df2c727622713d5cdca8e7a73f9e1554dd3c
»»»»» Script output:
WARNINGS for /tmp/D28w8y9Viy:
0 dogs
1 dog
2 dogs
Potential dead code, the '?? !!' is gobbling up the result of the '&infix:<->' (line 1)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing f4d7c4f36622858fad309810fd11b39a507f5cfe
»»»»» Script output:
0 dogs
1 dog
2 dogs
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 951af2c2e0806038ff28a25a05ee2389d1283693
»»»»» Script output:
0 dogs
1 dog
2 dogs
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 9237926eb4d571d6adc8d46b024cb4e3b9b418c2
»»»»» Script output:
WARNINGS for /tmp/D28w8y9Viy:
0 dogs
1 dog
2 dogs
Potential dead code, the '?? !!' is gobbling up the result of the '&infix:<->' (line 1)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing bf43cffc49dc1752bece812ab8522b2151b88bba
»»»»» Script output:
0 dogs
1 dog
2 dogs
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 71c62e7c1121c19e7c486de5f56d0e7d13855ce1
»»»»» Script output:
WARNINGS for /tmp/D28w8y9Viy:
0 dogs
1 dog
2 dogs
Potential dead code, the '?? !!' is gobbling up the result of the '&infix:<->' (line 1)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
0 dogs
1 dog
2 dogs
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
71c62e7c1121c19e7c486de5f56d0e7d13855ce1 is the first new commit
commit 71c62e7c1121c19e7c486de5f56d0e7d13855ce1
Author: Daniel Green <ddgreen@gmail.com>
Date: Wed Dec 15 19:45:42 2021 -0500
Warn on potential problem with ternaries and infixes
An infix potentially being used incorrectly (because of precedence problems)
in the condition of a ternary will now cause a warning.
:040000 040000 d9c371a4645c8353684980489bf27c74e549ae26 cd1488111f008fc6c6b1a11d3d1e36f6484b2f08 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment