changeset 14:610e73303a71

Better output for tests.
author Atul Varma <varmaa@toolness.com>
date Sun, 11 May 2008 16:55:56 -0700
parents ba38424a14c2
children 3650fdd2ea28
files tests/output/test_gnusto_engine.txt tests/test_gnusto_engine.js
diffstat 2 files changed, 17 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/tests/output/test_gnusto_engine.txt	Sun May 11 16:50:57 2008 -0700
+++ b/tests/output/test_gnusto_engine.txt	Sun May 11 16:55:56 2008 -0700
@@ -21,29 +21,29 @@
 
 [GNUSTO_EFFECT_STYLE 0 0 0]
 The Troll Room
-[TW]
+[GNUSTO_EFFECT_SPLITWINDOW 1]
 
 This is a small room with passages to the east and south and a forbidding hole leading west. Bloodstains and deep scratches (perhaps made by an axe) mar the walls.
 
 >
 [GNUSTO_EFFECT_SETWINDOW 1]
-[SC]
+[GNUSTO_EFFECT_SETCURSOR 1 1]
 [GNUSTO_EFFECT_STYLE 1 0 0]
-[SC]
-[SC]
+[GNUSTO_EFFECT_SETCURSOR 1 2]
+[GNUSTO_EFFECT_SETCURSOR 1 1]
 The Troll Room
 [GNUSTO_EFFECT_STYLE 0 0 0]
 [GNUSTO_EFFECT_SETWINDOW 0]
 [GNUSTO_EFFECT_INPUT] (responding with "quit")
-[TW]
+[GNUSTO_EFFECT_SPLITWINDOW 1]
 Are you sure you want to quit? 
 [GNUSTO_EFFECT_SETWINDOW 1]
-[SC]
+[GNUSTO_EFFECT_SETCURSOR 1 1]
 [GNUSTO_EFFECT_STYLE 1 0 0]
-[SC]
-[SC]
+[GNUSTO_EFFECT_SETCURSOR 1 2]
+[GNUSTO_EFFECT_SETCURSOR 1 1]
 The Troll Room
 [GNUSTO_EFFECT_STYLE 0 0 0]
 [GNUSTO_EFFECT_SETWINDOW 0]
 [GNUSTO_EFFECT_INPUT] (responding with "yes")
-[QU]
+[GNUSTO_EFFECT_QUIT]
--- a/tests/test_gnusto_engine.js	Sun May 11 16:50:57 2008 -0700
+++ b/tests/test_gnusto_engine.js	Sun May 11 16:55:56 2008 -0700
@@ -24,11 +24,19 @@
     case GNUSTO_EFFECT_SETWINDOW:
         desc = ('[GNUSTO_EFFECT_SETWINDOW ' + engine.effect(1) + ']');
         break;
+    case GNUSTO_EFFECT_SPLITWINDOW:
+        desc = ('[GNUSTO_EFFECT_SPLITWINDOW ' + engine.effect(1) + ']');
+        break;
+    case GNUSTO_EFFECT_SETCURSOR:
+        desc = ('[GNUSTO_EFFECT_SETCURSOR ' + engine.effect(1) + ' ' +
+                engine.effect(2) + ']');
+        break;
     case GNUSTO_EFFECT_STYLE:
         desc = ('[GNUSTO_EFFECT_STYLE ' + engine.effect(1) +
                 ' ' + engine.effect(2) + ' ' + engine.effect(3) + ']');
         break;
     case GNUSTO_EFFECT_QUIT:
+        desc = '[GNUSTO_EFFECT_QUIT]';
         retval = 1;
         break;
     default: