Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 22, 2020 23:31
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/6a07a117e4280c91bed0a126f7fa93be to your computer and use it in GitHub Desktop.
Save Whateverable/6a07a117e4280c91bed0a126f7fa93be to your computer and use it in GitHub Desktop.
bisectable6
say <Hello, World>.contains('Hello')
Bisecting: 5771 revisions left to test after this (roughly 13 steps)
[f8edb8295773acd41432e4f85424f5eb7245dbd7] Document test helpers
»»»»» Testing f8edb8295773acd41432e4f85424f5eb7245dbd7
»»»»» Script output:
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 136164427caf06d1c1f7ab971ab435e75683fc20
»»»»» Script output:
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing abc072cd641525f8444284310b6c4bf7cbc1b284
»»»»» Cannot test this commit. Reason: Commit exists, but an executable could not be built for it
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0365662eb026f5675ea157ace2e855321a765971
»»»»» Script output:
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 779b0a2ea3e803cdf72c25dd6cd99dfe7004e0d3
»»»»» Script output:
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2b04eea7d2a0f36209833255a4148f1a64f90443
»»»»» Script output:
Calling '.contains' on a List, did you mean 'needle (elem) list'?
True
in block <unit> at /tmp/AOR08xHEMq line 1
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing fa355a26d2f262d9b7b321a366b4ace87ebf5c11
»»»»» Script output:
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 589ba38c776750d8d79d1e0a50e0d790ad91ed34
»»»»» Script output:
Calling '.contains' on a List, did you mean 'needle (elem) list'?
True
in block <unit> at /tmp/AOR08xHEMq line 1
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5ac792acfd2ea19b2a26d58bdb89c0f1b5808268
»»»»» Script output:
Calling '.contains' on a List, did you mean 'needle (elem) list'?
True
in block <unit> at /tmp/AOR08xHEMq line 1
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 77d8fa37bd213af3ef86054ab6cc5509b6b43662
»»»»» Script output:
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0c5a7075a92740ce9cc61ace20f9b405f29654bc
»»»»» Script output:
Calling '.contains' on a List, did you mean 'needle (elem) list'?
True
in block <unit> at /tmp/AOR08xHEMq line 1
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0d81a867593c4db95e621e57d301e78b5a594c59
»»»»» Script output:
Calling '.contains' on a List, did you mean 'needle (elem) list'?
True
in block <unit> at /tmp/AOR08xHEMq line 1
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c9b02185444aba7d80039e6a6a96ad2a4885d149
»»»»» Script output:
Calling '.contains' on a List, did you mean 'needle (elem) list'?
True
in block <unit> at /tmp/AOR08xHEMq line 1
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 666f95c1ab73dce29caa68afafb3e395e4b9d4c7
»»»»» Script output:
True
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
True
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
c9b02185444aba7d80039e6a6a96ad2a4885d149 is the first new commit
commit c9b02185444aba7d80039e6a6a96ad2a4885d149
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Thu Jan 23 20:13:50 2020 +0100
Make List.index|indiced|contains issue a warning
https://docs.raku.org/language/traps#Strings_are_not_Lists,_so_beware_indexing
shows that it is a very common newbie error to use the "index",
"contains" and "indices" methods on a List, not realizing that that will
first stringify the List (because Lists are Cool). And this *not*
give the result one expects, or in a worse case, provide false positives.
say ("a","b").contains("ab") # True
This commit adds 3 'List:D: Str:D \needle' candidates which should catch
this type of newbie behaviour. Should this be intended behaviour, then
the warning can be simply circumvented by adding ",0" (aka, starting
from the first position in the string). Or by explicitely joining the
List first.
Please revert if this is somehow deemed unnecessary or unwelcome.
:040000 040000 78bb586236ea27da4ae96c6863a97ba1c49e9a65 3121dc142b2b7222bf482dcbded0aa5bcdb0505b M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment