Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created November 10, 2018 16:07
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/71908c67bb9e9b4f5aac0ffaa4980aa3 to your computer and use it in GitHub Desktop.
Save Whateverable/71908c67bb9e9b4f5aac0ffaa4980aa3 to your computer and use it in GitHub Desktop.
bisectable6
my Int @A = [1,2,3]; my @b := @A >>+>> 0; @b[0] = "foo"; say @b
Bisecting: 4405 revisions left to test after this (roughly 12 steps)
[e65800a84bba1a5c3b5bf1cf80fa0797a601e351] Make Any (elem) Iterable:D between 1.3x and 110x faster
»»»»» Testing e65800a84bba1a5c3b5bf1cf80fa0797a601e351
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b4fe68080269c4b48ae853d71d47a4848e5b846b
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 60a099248f4e08fab0fcf3148778349ee2f8363b
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e00046b35cdd68460b6e058b5811a6c0ed295f63
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 859a4d38a70bc8777932c7d319886d5d6fc13fb2
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 280a487eb3152a7ab7e4174d10f2974de4809d78
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 123c7aadfb9ef0c656c3b4fb6281605345a015cf
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing bcab502d456520286981cd597ed02d48004d6fa6
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing edac531c6c11934760e81905cc5c5bf12625ea01
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e3b1dd391e7addf2ce81e9798748ee717d92444b
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e93a06c1d5792e550b09a949b2ebe2552ebae42a
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 02709661848ca367af9380f693023600a7e68b1d
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 9983c2c8434ed81c532a5706996f284283b48d0a
»»»»» Script output:
Type check failed in assignment to ; expected Int but got Str ("foo")
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» Script exit code: 1
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
Type check failed in assignment to ; expected Int but got Str
in block <unit> at /tmp/c7hxQfSXnV line 1
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
9983c2c8434ed81c532a5706996f284283b48d0a is the first new commit
commit 9983c2c8434ed81c532a5706996f284283b48d0a
Author: Elizabeth Mattijsen <liz@dijkmat.nl>
Date: Thu Feb 18 10:32:56 2016 +0100
Make X::TypeCheck a little more informative
by showing the actual value passed if possible, truncated if too long
:040000 040000 ce42ca2db3a601818be6f4d448815b7cad2072da 3bbf10195b05bdfedaa2af4ba6bb12cec5b467c3 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment