diff options
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/004-programming-environment.mu | 2 | ||||
-rw-r--r-- | sandbox/005-sandbox.mu | 96 | ||||
-rw-r--r-- | sandbox/006-sandbox-copy.mu | 36 | ||||
-rw-r--r-- | sandbox/007-sandbox-delete.mu | 48 | ||||
-rw-r--r-- | sandbox/008-sandbox-edit.mu | 34 | ||||
-rw-r--r-- | sandbox/009-sandbox-test.mu | 8 | ||||
-rw-r--r-- | sandbox/010-sandbox-trace.mu | 24 | ||||
-rw-r--r-- | sandbox/011-errors.mu | 48 |
8 files changed, 148 insertions, 148 deletions
diff --git a/sandbox/004-programming-environment.mu b/sandbox/004-programming-environment.mu index f39f0b35..af136deb 100644 --- a/sandbox/004-programming-environment.mu +++ b/sandbox/004-programming-environment.mu @@ -269,7 +269,7 @@ def render-sandbox-side screen:&:screen, env:&:environment, {render-editor: (rec clear-line-until screen, right row <- add row, 1 # draw solid line after code (you'll see why in later layers) - draw-horizontal screen, row, left, right, 9473/horizontal + draw-horizontal screen, row, left, right row <- add row, 1 clear-screen-from screen, row, left, left, right ] diff --git a/sandbox/005-sandbox.mu b/sandbox/005-sandbox.mu index cd37e7a8..45dc259c 100644 --- a/sandbox/005-sandbox.mu +++ b/sandbox/005-sandbox.mu @@ -45,12 +45,12 @@ scenario run-and-show-results [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .divide-with-remainder 11, 3 . .3 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] screen-should-contain-in-color 7/white, [ @@ -67,12 +67,12 @@ scenario run-and-show-results [ screen-should-contain-in-color 245/grey, [ . . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . .3 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # run another command @@ -88,16 +88,16 @@ scenario run-and-show-results [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .divide-with-remainder 11, 3 . .3 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -236,7 +236,7 @@ def! render-sandbox-side screen:&:screen, env:&:environment, {render-editor: (re row <- add row, 1 } # render sandboxes - draw-horizontal screen, row, left, right, 9473/horizontal-double + draw-horizontal screen, row, left, right sandbox:&:sandbox <- get *env, sandbox:offset row, screen <- render-sandboxes screen, sandbox, left, right, row, render-from, 0, env clear-rest-of-screen screen, row, left, right @@ -283,7 +283,7 @@ def render-sandboxes screen:&:screen, sandbox:&:sandbox, left:num, right:num, ro at-bottom?:bool <- greater-or-equal row, screen-height return-if at-bottom? # draw solid line after sandbox - draw-horizontal screen, row, left, right, 9473/horizontal-double + draw-horizontal screen, row, left, right } # if hidden, reset row attributes { @@ -521,11 +521,11 @@ reply z screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # make a change (incrementing one of the args to 'add'), then rerun @@ -545,11 +545,11 @@ return z screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .5 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -571,7 +571,7 @@ scenario run-instruction-manages-screen-per-sandbox [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .print-integer screen, 4 . .screen: . @@ -580,7 +580,7 @@ scenario run-instruction-manages-screen-per-sandbox [ . . . . . . . . . . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -639,11 +639,11 @@ scenario scrolling-down-past-bottom-of-sandbox-editor [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-down' @@ -659,11 +659,11 @@ scenario scrolling-down-past-bottom-of-sandbox-editor [ # cursor moves to first sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .␣ edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-up' @@ -679,11 +679,11 @@ scenario scrolling-down-past-bottom-of-sandbox-editor [ screen-should-contain [ . run (F4) . .␣ . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -781,15 +781,15 @@ scenario scrolling-through-multiple-sandboxes [ screen-should-contain [ . run (F4) . .␣ . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-down' @@ -805,15 +805,15 @@ scenario scrolling-through-multiple-sandboxes [ # cursor moves to first sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .␣ edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-down' again @@ -826,11 +826,11 @@ scenario scrolling-through-multiple-sandboxes [ # just second sandbox displayed screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-down' again @@ -843,11 +843,11 @@ scenario scrolling-through-multiple-sandboxes [ # no change screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-up' @@ -860,15 +860,15 @@ scenario scrolling-through-multiple-sandboxes [ # back to displaying both sandboxes without editor screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-up' again @@ -884,15 +884,15 @@ scenario scrolling-through-multiple-sandboxes [ screen-should-contain [ . run (F4) . .␣ . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-up' again @@ -908,15 +908,15 @@ scenario scrolling-through-multiple-sandboxes [ screen-should-contain [ . run (F4) . .␣ . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -938,11 +938,11 @@ scenario scrolling-manages-sandbox-index-correctly [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-down' and 'page-up' a couple of times. sandbox index should be stable @@ -956,11 +956,11 @@ scenario scrolling-manages-sandbox-index-correctly [ # cursor moves to first sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-up' again @@ -974,11 +974,11 @@ scenario scrolling-manages-sandbox-index-correctly [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # hit 'page-down' @@ -992,11 +992,11 @@ scenario scrolling-manages-sandbox-index-correctly [ # cursor moves to first sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . # no change .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] diff --git a/sandbox/006-sandbox-copy.mu b/sandbox/006-sandbox-copy.mu index 784ae1eb..fdc1409a 100644 --- a/sandbox/006-sandbox-copy.mu +++ b/sandbox/006-sandbox-copy.mu @@ -13,11 +13,11 @@ scenario copy-a-sandbox-to-editor [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . . . @@ -33,11 +33,11 @@ scenario copy-a-sandbox-to-editor [ screen-should-contain [ . run (F4) . .add 1, 1 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . . . @@ -52,11 +52,11 @@ scenario copy-a-sandbox-to-editor [ screen-should-contain [ . run (F4) . .0add 1, 1 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . . . @@ -75,11 +75,11 @@ scenario copy-a-sandbox-to-editor-2 [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . . . @@ -95,11 +95,11 @@ scenario copy-a-sandbox-to-editor-2 [ screen-should-contain [ . run (F4) . .add 1, 1 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . . . @@ -114,11 +114,11 @@ scenario copy-a-sandbox-to-editor-2 [ screen-should-contain [ . run (F4) . .0add 1, 1 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . . . @@ -226,11 +226,11 @@ scenario copy-fails-if-sandbox-editor-not-empty [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # type something into the sandbox editor, then click on the 'copy' button @@ -246,11 +246,11 @@ scenario copy-fails-if-sandbox-editor-not-empty [ screen-should-contain [ . run (F4) . .0 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # cursor should be in the right place @@ -263,11 +263,11 @@ scenario copy-fails-if-sandbox-editor-not-empty [ screen-should-contain [ . run (F4) . .01 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] diff --git a/sandbox/007-sandbox-delete.mu b/sandbox/007-sandbox-delete.mu index ff04344f..dba40a8f 100644 --- a/sandbox/007-sandbox-delete.mu +++ b/sandbox/007-sandbox-delete.mu @@ -16,16 +16,16 @@ scenario deleting-sandboxes [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .divide-with-remainder 11, 3 . .3 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # delete second sandbox by clicking on left edge of 'delete' button @@ -38,11 +38,11 @@ scenario deleting-sandboxes [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # delete first sandbox by clicking at right edge of 'delete' button @@ -55,7 +55,7 @@ scenario deleting-sandboxes [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -162,15 +162,15 @@ scenario deleting-sandbox-after-scroll [ event-loop screen, console, env screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. ] # delete the second sandbox assume-console [ @@ -182,11 +182,11 @@ scenario deleting-sandbox-after-scroll [ # second sandbox shows in editor; scroll resets to display first sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -210,15 +210,15 @@ scenario deleting-top-sandbox-after-scroll [ event-loop screen, console, env screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. ] # delete the second sandbox assume-console [ @@ -230,11 +230,11 @@ scenario deleting-top-sandbox-after-scroll [ # second sandbox shows in editor; scroll resets to display first sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -259,11 +259,11 @@ scenario deleting-final-sandbox-after-scroll [ event-loop screen, console, env screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # delete the second sandbox @@ -277,11 +277,11 @@ scenario deleting-final-sandbox-after-scroll [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -305,11 +305,11 @@ scenario deleting-updates-sandbox-count [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . @@ -326,11 +326,11 @@ scenario deleting-updates-sandbox-count [ # shouldn't go past last sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] diff --git a/sandbox/008-sandbox-edit.mu b/sandbox/008-sandbox-edit.mu index 533e664c..42778faa 100644 --- a/sandbox/008-sandbox-edit.mu +++ b/sandbox/008-sandbox-edit.mu @@ -13,11 +13,11 @@ scenario clicking-on-a-sandbox-moves-it-to-editor [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # click somewhere on the sandbox @@ -31,7 +31,7 @@ scenario clicking-on-a-sandbox-moves-it-to-editor [ screen-should-contain [ . run (F4) . .add 2, 2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # cursor should be in the right place @@ -44,7 +44,7 @@ scenario clicking-on-a-sandbox-moves-it-to-editor [ screen-should-contain [ . run (F4) . .0add 2, 2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -114,7 +114,7 @@ scenario sandbox-with-print-can-be-edited [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .print-integer screen, 4 . .screen: . @@ -123,7 +123,7 @@ scenario sandbox-with-print-can-be-edited [ . . . . . . . . . . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # edit the sandbox @@ -136,7 +136,7 @@ scenario sandbox-with-print-can-be-edited [ screen-should-contain [ . run (F4) . .print-integer screen, 4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . ] @@ -162,11 +162,11 @@ scenario editing-sandbox-after-scrolling-resets-scroll [ event-loop screen, console, env screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # edit the second sandbox @@ -180,11 +180,11 @@ scenario editing-sandbox-after-scrolling-resets-scroll [ screen-should-contain [ . run (F4) . .add 2, 2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -208,11 +208,11 @@ scenario editing-sandbox-updates-sandbox-count [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . ] # edit the second sandbox, then resave @@ -227,11 +227,11 @@ scenario editing-sandbox-updates-sandbox-count [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 1, 1 . .2 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . ] # now try to scroll past end @@ -246,11 +246,11 @@ scenario editing-sandbox-updates-sandbox-count [ # screen should show just final sandbox screen-should-contain [ . run (F4) . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .1 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] diff --git a/sandbox/009-sandbox-test.mu b/sandbox/009-sandbox-test.mu index eb7fc274..f27b4a06 100644 --- a/sandbox/009-sandbox-test.mu +++ b/sandbox/009-sandbox-test.mu @@ -18,11 +18,11 @@ recipe foo [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # click on the '4' in the result @@ -50,11 +50,11 @@ recipe foo [ screen-should-contain [ . run (F4) . .␣ . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # now change the result diff --git a/sandbox/010-sandbox-trace.mu b/sandbox/010-sandbox-trace.mu index 5116b43b..15a4f931 100644 --- a/sandbox/010-sandbox-trace.mu +++ b/sandbox/010-sandbox-trace.mu @@ -13,10 +13,10 @@ scenario sandbox-click-on-code-toggles-app-trace [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .stash [abc] . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # click on the code in the sandbox @@ -32,7 +32,7 @@ scenario sandbox-click-on-code-toggles-app-trace [ screen-should-contain [ . run (F4) . .␣ . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .stash [abc] . .abc . @@ -40,7 +40,7 @@ scenario sandbox-click-on-code-toggles-app-trace [ screen-should-contain-in-color 245/grey, [ . . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . . . .abc . @@ -57,10 +57,10 @@ scenario sandbox-click-on-code-toggles-app-trace [ screen-should-contain [ . run (F4) . .␣ . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .stash [abc] . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -80,12 +80,12 @@ add 2, 2] screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .stash [abc] . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # click on the code in the sandbox @@ -99,14 +99,14 @@ add 2, 2] screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .stash [abc] . .add 2, 2 . .abc . .7 instructions run . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. ] ] @@ -124,7 +124,7 @@ scenario clicking-on-app-trace-does-nothing [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .stash 123456789 . .123456789 . @@ -140,7 +140,7 @@ scenario clicking-on-app-trace-does-nothing [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .stash 123456789 . .123456789 . diff --git a/sandbox/011-errors.mu b/sandbox/011-errors.mu index b420ed6b..bd6d4e7c 100644 --- a/sandbox/011-errors.mu +++ b/sandbox/011-errors.mu @@ -142,7 +142,7 @@ recipe foo [ screen-should-contain [ . errors found run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .foo: unknown element 'foo' in container 'number' . @@ -224,11 +224,11 @@ scenario run-hides-errors-from-past-sandboxes [ screen-should-contain [ . run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .add 2, 2 . .4 . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -252,12 +252,12 @@ z <- add x, y screen-should-contain [ . errors found (0) run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo 2 . .foo_2: 'add' requires number ingredients, but got↩. . 'y' . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # now rerun everything @@ -271,12 +271,12 @@ z <- add x, y screen-should-contain [ . errors found (0) run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo 2 . .foo_3: 'add' requires number ingredients, but got↩. . 'y' . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -348,7 +348,7 @@ recipe foo [ screen-should-contain [ . errors found run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .foo: missing type for 'x' in 'x <- copy 0' . @@ -374,12 +374,12 @@ recipe foo \\[ screen-should-contain [ . errors found run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .9: unbalanced '\\[' for recipe . .9: unbalanced '\\[' for recipe . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -404,7 +404,7 @@ recipe foo [ screen-should-contain [ . errors found run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .foo: first ingredient of 'get' should be a contai↩. @@ -433,7 +433,7 @@ recipe foo [ screen-should-contain [ . errors found run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .foo: second ingredient of 'get' should have type ↩. @@ -459,7 +459,7 @@ recipe foo [ screen-should-contain [ . errors found run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .foo: use before set: 'y' . @@ -474,7 +474,7 @@ recipe foo [ screen-should-contain [ . errors found run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo . .foo: use before set: 'y' . @@ -496,12 +496,12 @@ scenario run-instruction-and-print-errors [ screen-should-contain [ . errors found (0) run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .get 1:&:point, 1:offset . .first ingredient of 'get' should be a container, ↩. .but got '1:&:point' . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] screen-should-contain-in-color 1/red, [ @@ -536,13 +536,13 @@ scenario run-instruction-and-print-errors-only-once [ screen-should-contain [ . errors found (0) run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .get 1234:num, foo:offset . .unknown element 'foo' in container 'number' . .first ingredient of 'get' should be a container, ↩. .but got '1234:num' . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -566,13 +566,13 @@ loop screen-should-contain [ . errors found (0) run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .{ . .loop . .} . .took too long! . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] @@ -600,12 +600,12 @@ reply b screen-should-contain [ . errors found (0) run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo 4, 0 . .foo: divide by zero in '_, c:num <- divide-with-r↩. .emainder a, b' . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] # click on the call in the sandbox @@ -619,14 +619,14 @@ reply b screen-should-contain [ . errors found (0) run (F4) . . . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. .0 edit copy delete . .foo 4, 0 . .dividing by 0 . .14 instructions run . .foo: divide by zero in '_, c:num <- divide-with-r↩. .emainder a, b' . - .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + .──────────────────────────────────────────────────. . . ] ] |