From eeed3845cd504028779c333665e0b9fad2070357 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 6 Oct 2016 21:49:36 -0700 Subject: 3456 --- html/edit/011-errors.mu.html | 70 ++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'html/edit/011-errors.mu.html') diff --git a/html/edit/011-errors.mu.html b/html/edit/011-errors.mu.html index be2a087f..67c6c5d2 100644 --- a/html/edit/011-errors.mu.html +++ b/html/edit/011-errors.mu.html @@ -157,12 +157,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color recipe foo [ get 123:num, foo:offset ]] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo] + env:&:environment <- new-programming-environment screen, recipes, [foo] assume-console [ press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] screen-should-contain [ . errors found run (F4) . @@ -193,7 +193,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color local-scope trace-until 100/app # trace too long assume-screen 100/width, 15/height - env:&:environment <- new-programming-environment screen:&:screen, [], [] + env:&:environment <- new-programming-environment screen, [], [] assume-console [ left-click 3, 80 # create invalid sandbox 1 @@ -204,7 +204,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # status line shows that error is in first sandbox screen-should-contain [ @@ -216,7 +216,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color local-scope trace-until 100/app # trace too long assume-screen 100/width, 15/height - env:&:environment <- new-programming-environment screen:&:screen, [], [] + env:&:environment <- new-programming-environment screen, [], [] assume-console [ left-click 3, 80 # create invalid sandbox 2 @@ -230,7 +230,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # status line shows that error is in second sandbox screen-should-contain [ @@ -242,12 +242,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color local-scope trace-until 100/app # trace too long assume-screen 100/width, 15/height - env:&:environment <- new-programming-environment screen:&:screen, [], [get foo, x:offset] # invalid + env:&:environment <- new-programming-environment screen, [], [get foo, x:offset] # invalid assume-console [ press F4 # generate error ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] assume-console [ left-click 3, 58 @@ -256,7 +256,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color press F4 # update sandbox ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # error should disappear screen-should-contain [ @@ -282,11 +282,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color y:&:num <- copy 0 z <- add x, y ]] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo 2] + env:&:environment <- new-programming-environment screen, recipes, [foo 2] assume-console [ press F4 ] - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env screen-should-contain [ . errors found (0) run (F4) . .recipe foo x:_elem -> z:_elem [ ┊ . @@ -303,7 +303,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # error should remain unchanged screen-should-contain [ @@ -329,12 +329,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color # call code that uses other variants of it, but not it itself sandbox:text <- new [x:&:list:num <- copy 0 to-text x] - env:&:environment <- new-programming-environment screen:&:screen, recipes, sandbox + env:&:environment <- new-programming-environment screen, recipes, sandbox # run it once assume-console [ press F4 ] - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env # no errors anywhere on screen (can't check anything else, since to-text will return an address) screen-should-contain-in-color 1/red, [ . . @@ -358,7 +358,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # still no errors screen-should-contain-in-color 1/red, [ @@ -388,12 +388,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color recipe foo [ x <- copy 0 ]] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo] + env:&:environment <- new-programming-environment screen, recipes, [foo] assume-console [ press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] screen-should-contain [ . errors found run (F4) . @@ -414,12 +414,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color recipe foo \\[ x <- copy 0 ] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo] + env:&:environment <- new-programming-environment screen, recipes, [foo] assume-console [ press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] screen-should-contain [ . errors found run (F4) . @@ -443,12 +443,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color x:&:point <- new point:type get x:&:point, 1:offset ]] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo] + env:&:environment <- new-programming-environment screen, recipes, [foo] assume-console [ press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] screen-should-contain [ . errors found run (F4) . @@ -476,12 +476,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color y:&:point <- new point:type get *y:&:point, x:num ]] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo] + env:&:environment <- new-programming-environment screen, recipes, [foo] assume-console [ press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] screen-should-contain [ . errors found run (F4) . @@ -509,11 +509,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color local-scope x:num <- copy y:num ]] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo] + env:&:environment <- new-programming-environment screen, recipes, [foo] assume-console [ press F4 ] - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env screen-should-contain [ . errors found run (F4) . . ┊foo . @@ -530,7 +530,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] screen-should-contain [ . errors found run (F4) . @@ -551,13 +551,13 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color assume-screen 100/width, 10/height # right editor contains an illegal instruction sandbox:text <- new [get 1234:num, foo:offset] - env:&:environment <- new-programming-environment screen:&:screen, [], sandbox + env:&:environment <- new-programming-environment screen, [], sandbox # run the code in the editors assume-console [ press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # check that screen prints error message in red screen-should-contain [ @@ -613,14 +613,14 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color assume-screen 100/width, 10/height # right editor contains an illegal instruction sandbox:text <- new [get 1234:num, foo:offset] - env:&:environment <- new-programming-environment screen:&:screen, [], sandbox + env:&:environment <- new-programming-environment screen, [], sandbox # run the code in the editors multiple times assume-console [ press F4 press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # check that screen prints error message just once screen-should-contain [ @@ -648,13 +648,13 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color } ]] # right editor contains an instruction - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo] + env:&:environment <- new-programming-environment screen, recipes, [foo] # run the sandbox assume-console [ press F4 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] screen-should-contain [ . errors found (0) run (F4) . @@ -681,12 +681,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color _, c:num <- divide-with-remainder a, b reply b ]] - env:&:environment <- new-programming-environment screen:&:screen, recipes, [foo 4, 0] + env:&:environment <- new-programming-environment screen, recipes, [foo 4, 0] # run assume-console [ press F4 ] - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env # screen prints error message screen-should-contain [ . errors found (0) run (F4) . @@ -704,7 +704,7 @@ _, c:num <- divide-with-remainder a, b left-click 4, 55 ] run [ - event-loop screen:&:screen, console:&:console, env + event-loop screen, console, env ] # screen should expand trace screen-should-contain [ -- cgit 1.4.1-2-gfad0