[svn:parrot] r39914 - branches/ops_pct/compilers/opsc/t

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Jul 7 09:56:38 UTC 2009


Author: bacek
Date: Tue Jul  7 09:56:38 2009
New Revision: 39914
URL: https://trac.parrot.org/parrot/changeset/39914

Log:
Add more tests

Modified:
   branches/ops_pct/compilers/opsc/t/01-parse.t

Modified: branches/ops_pct/compilers/opsc/t/01-parse.t
==============================================================================
--- branches/ops_pct/compilers/opsc/t/01-parse.t	Tue Jul  7 09:56:01 2009	(r39913)
+++ branches/ops_pct/compilers/opsc/t/01-parse.t	Tue Jul  7 09:56:38 2009	(r39914)
@@ -7,7 +7,7 @@
     .include 'test_more.pir'
     load_bytecode 'opsc.pbc'
 
-    plan(1)
+    plan(3)
 
     test_parse_basic_op()
 .end
@@ -17,13 +17,33 @@
     .local pmc res
 
     buf = <<"END"
-op noop() {
+inline op noop() {
 }
 END
     
     "_parse_buffer"(buf)
     ok(1, "Simple noop parsed")
 
+    buf = <<"END"
+inline op noop() {
+    foo
+}
+END
+    
+    "_parse_buffer"(buf)
+    ok(1, "noop body parsed")
+
+    buf = <<"END"
+inline op noop() {
+    foo {
+        bar{};
+    }
+}
+END
+    
+    "_parse_buffer"(buf)
+    ok(1, "noop nested body parsed")
+
 
 .end
 


More information about the parrot-commits mailing list