Author: allison
Date: Sun Nov 30 17:17:07 2008
New Revision: 33390

Modified:
   branches/pdd22io_part2/t/pmc/io.t

Log:
[pdd22io] TODO test for StringHandle PMC (a subclass of FileHandle that stores
to and reads from a string instead of a filehandle).


Modified: branches/pdd22io_part2/t/pmc/io.t
==============================================================================
--- branches/pdd22io_part2/t/pmc/io.t   (original)
+++ branches/pdd22io_part2/t/pmc/io.t   Sun Nov 30 17:17:07 2008
@@ -823,29 +823,25 @@
 T\xf6tsch
 OUTPUT
 
-pir_output_is( <<'CODE', <<"OUTPUT", "string read/write handle" );
+pir_output_is( <<'CODE', <<"OUTPUT", "string read/write handle", todo => "no 
stringhandle yet" );
 .sub main :main
     .local pmc    pio
     .local string greeting
     .local string layer
 
-    pio = getstdout
-    push pio, "string"
-    print "Hello"
-    print ", "
-    print "world!"
-    print "\n"
+    pio = new 'StringHandle'
+    print pio, "Hello"
+    print pio, ", "
+    print pio, "world!"
+    print pio, "\n"
 
     greeting = read pio, 1024
-    pop layer, pio
 
     print greeting
-    print layer
     print "\n"
 .end
 CODE
 Hello, world!
-string
 OUTPUT
 
 pir_output_is( <<"CODE", <<"OUTPUT", "PIO.readall() - classmeth" );

Reply via email to