Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 15, 2020 20:09
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/5dda407dc9c23702f2b29c9302d4a2e7 to your computer and use it in GitHub Desktop.
Save Whateverable/5dda407dc9c23702f2b29c9302d4a2e7 to your computer and use it in GitHub Desktop.
bisectable6
old=add2ec0d49 https://gist.github.com/AlexDaniel/2119ef7a81750ad4be02476bbc011f30
Bisecting: 45 revisions left to test after this (roughly 6 steps)
[06292bc826de1d40c40d2bc748d485ad5b1727d9] Replace RT ticket references to GitHub
»»»»» Testing 06292bc826de1d40c40d2bc748d485ad5b1727d9
»»»»» Script output:
1..7
not ok 1 - evaling a construction gists out exactly the same again.
# Failed test 'evaling a construction gists out exactly the same again.'
# at ./sandbox/01-tree.p6 line 15
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: 'Tree.new-branch(left => Tree.new(branch => Branch.new(left => Tree.new(branch => Any, leaf => Leaf.new(storage => 1)), right => Tree.new(branch => Any, leaf => Leaf.new(storage => 2))), leaf => Any), right => Tree.new(branch => Any, leaf => Leaf.new(storage => 3)))'
not ok 2 - evaling a construction perls out exactly the same again.
# Failed test 'evaling a construction perls out exactly the same again.'
# at ./sandbox/01-tree.p6 line 16
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: 'Tree.new-branch…
»»»»» (output was trimmed because it is too large)
»»»»» Script exit code: 3
»»»»» Bisecting by exit code
»»»»» Current exit code is 3, exit code on “old” revision is 3
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» 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 53e5235cbb9e683212b81194e6c990a811df0aec
»»»»» Cannot test this commit. Reason: Commit exists, but an executable could not be built for it
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing 46d31098d99cf5c0c516bd631d5cef4e3dc74b5e
»»»»» Cannot test this commit. Reason: Commit exists, but an executable could not be built for it
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing f08cd00fcd8d8317956778d9a28af837d878d60a
»»»»» Script output:
1..7
not ok 1 - evaling a construction gists out exactly the same again.
# Failed test 'evaling a construction gists out exactly the same again.'
# at ./sandbox/01-tree.p6 line 15
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 2 - evaling a construction perls out exactly the same again.
# Failed test 'evaling a construction perls out exactly the same again.'
# at ./sandbox/01-tree.p6 line 16
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 3 - positional args for constructors work, too
# Failed test 'positional args for constructors work, too'
# at ./sandbox/01-tree.p6 line 24
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 4 - example treemaps work
# Failed test 'example treemaps work'
# at ./sandbox/01-tree.p6 line 37
# expected: '60'
# got: (Any)
ok 5 - smartmatch against container class
not ok 6 - smartmatch against one constructor
# Failed test 'smartmatch against one constructor'
# at ./sandbox/01-tree.p6 line 40
No such method 'right' for invocant of type 'Any'
in block <unit> at ./sandbox/01-tree.p6 line 41
# You planned 7 tests, but ran 6
# You failed 5 tests of 6
»»»»» Script exit code: 5
»»»»» Bisecting by exit code
»»»»» Current exit code is 5, exit code on “old” revision is 3
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» 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 8cfa65901768b1a50779d9e298a898642d0e3306
»»»»» Script output:
1..7
not ok 1 - evaling a construction gists out exactly the same again.
# Failed test 'evaling a construction gists out exactly the same again.'
# at ./sandbox/01-tree.p6 line 15
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: 'Tree.new-branch(left => Tree.new(branch => Branch.new(left => Tree.new(branch => Any, leaf => Leaf.new(storage => 1)), right => Tree.new(branch => Any, leaf => Leaf.new(storage => 2))), leaf => Any), right => Tree.new(branch => Any, leaf => Leaf.new(storage => 3)))'
not ok 2 - evaling a construction perls out exactly the same again.
# Failed test 'evaling a construction perls out exactly the same again.'
# at ./sandbox/01-tree.p6 line 16
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: 'Tree.new-branch…
»»»»» (output was trimmed because it is too large)
»»»»» Script exit code: 3
»»»»» Bisecting by exit code
»»»»» Current exit code is 3, exit code on “old” revision is 3
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» 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 8a505e1082c2a15ef7b95b0379c1b18cc03155b8
»»»»» Cannot test this commit. Reason: Commit exists, but an executable could not be built for it
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing cca7f568a73f7e450aedbcbf6b8d68e7dc59f27b
»»»»» Script output:
1..7
not ok 1 - evaling a construction gists out exactly the same again.
# Failed test 'evaling a construction gists out exactly the same again.'
# at ./sandbox/01-tree.p6 line 15
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 2 - evaling a construction perls out exactly the same again.
# Failed test 'evaling a construction perls out exactly the same again.'
# at ./sandbox/01-tree.p6 line 16
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 3 - positional args for constructors work, too
# Failed test 'positional args for constructors work, too'
# at ./sandbox/01-tree.p6 line 24
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 4 - example treemaps work
# Failed test 'example treemaps work'
# at ./sandbox/01-tree.p6 line 37
# expected: '60'
# got: (Any)
ok 5 - smartmatch against container class
not ok 6 - smartmatch against one constructor
# Failed test 'smartmatch against one constructor'
# at ./sandbox/01-tree.p6 line 40
No such method 'right' for invocant of type 'Any'
in block <unit> at ./sandbox/01-tree.p6 line 41
# You planned 7 tests, but ran 6
# You failed 5 tests of 6
»»»»» Script exit code: 5
»»»»» Bisecting by exit code
»»»»» Current exit code is 5, exit code on “old” revision is 3
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» 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 826c3ead8208f3304f7ee99cc2575c2fbb3a8b6a
»»»»» Script output:
1..7
not ok 1 - evaling a construction gists out exactly the same again.
# Failed test 'evaling a construction gists out exactly the same again.'
# at ./sandbox/01-tree.p6 line 15
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 2 - evaling a construction perls out exactly the same again.
# Failed test 'evaling a construction perls out exactly the same again.'
# at ./sandbox/01-tree.p6 line 16
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 3 - positional args for constructors work, too
# Failed test 'positional args for constructors work, too'
# at ./sandbox/01-tree.p6 line 24
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 4 - example treemaps work
# Failed test 'example treemaps work'
# at ./sandbox/01-tree.p6 line 37
# expected: '60'
# got: (Any)
ok 5 - smartmatch against container class
not ok 6 - smartmatch against one constructor
# Failed test 'smartmatch against one constructor'
# at ./sandbox/01-tree.p6 line 40
No such method 'right' for invocant of type 'Any'
in block <unit> at ./sandbox/01-tree.p6 line 41
# You planned 7 tests, but ran 6
# You failed 5 tests of 6
»»»»» Script exit code: 5
»»»»» Bisecting by exit code
»»»»» Current exit code is 5, exit code on “old” revision is 3
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» 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 98abd6a73025b5c5938adf113aacfc9929eddf1f
»»»»» Script output:
1..7
not ok 1 - evaling a construction gists out exactly the same again.
# Failed test 'evaling a construction gists out exactly the same again.'
# at ./sandbox/01-tree.p6 line 15
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 2 - evaling a construction perls out exactly the same again.
# Failed test 'evaling a construction perls out exactly the same again.'
# at ./sandbox/01-tree.p6 line 16
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 3 - positional args for constructors work, too
# Failed test 'positional args for constructors work, too'
# at ./sandbox/01-tree.p6 line 24
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 4 - example treemaps work
# Failed test 'example treemaps work'
# at ./sandbox/01-tree.p6 line 37
# expected: '60'
# got: (Any)
ok 5 - smartmatch against container class
not ok 6 - smartmatch against one constructor
# Failed test 'smartmatch against one constructor'
# at ./sandbox/01-tree.p6 line 40
No such method 'right' for invocant of type 'Any'
in block <unit> at ./sandbox/01-tree.p6 line 41
# You planned 7 tests, but ran 6
# You failed 5 tests of 6
»»»»» Script exit code: 5
»»»»» Bisecting by exit code
»»»»» Current exit code is 5, exit code on “old” revision is 3
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» 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 e76f8e4d3ea62359eff129e28e82d67da154d255
»»»»» Script output:
1..7
not ok 1 - evaling a construction gists out exactly the same again.
# Failed test 'evaling a construction gists out exactly the same again.'
# at ./sandbox/01-tree.p6 line 15
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 2 - evaling a construction perls out exactly the same again.
# Failed test 'evaling a construction perls out exactly the same again.'
# at ./sandbox/01-tree.p6 line 16
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 3 - positional args for constructors work, too
# Failed test 'positional args for constructors work, too'
# at ./sandbox/01-tree.p6 line 24
# expected: 'Tree.new-branch(left => Tree.new-branch(left => Tree.new-leaf(storage => 1), right => Tree.new-leaf(storage => 2)), right => Tree.new-leaf(storage => 3))'
# got: (Nil)
not ok 4 - example treemaps work
# Failed test 'example treemaps work'
# at ./sandbox/01-tree.p6 line 37
# expected: '60'
# got: (Any)
ok 5 - smartmatch against container class
not ok 6 - smartmatch against one constructor
# Failed test 'smartmatch against one constructor'
# at ./sandbox/01-tree.p6 line 40
No such method 'right' for invocant of type 'Any'
in block <unit> at ./sandbox/01-tree.p6 line 41
# You planned 7 tests, but ran 6
# You failed 5 tests of 6
»»»»» Script exit code: 5
»»»»» Bisecting by exit code
»»»»» Current exit code is 5, exit code on “old” revision is 3
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
e76f8e4d3ea62359eff129e28e82d67da154d255 is the first new commit
commit e76f8e4d3ea62359eff129e28e82d67da154d255
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Tue Jan 14 15:01:35 2020 +0100
Implementation of the "is built" attribute trait
has $!a is built; # allow setting of private attribute in .new
has $.b is built(False); # do *not* allow setting of public attribute in new
:040000 040000 6ddce4617acef4ae440fee1ce92b71660688d126 1de267010f61227e47fd84fa3859d98e796a72fd M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment