[svn:parrot] r41064 - trunk/t/pmc

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Sun Sep 6 12:18:14 UTC 2009


Author: whiteknight
Date: Sun Sep  6 12:18:11 2009
New Revision: 41064
URL: https://trac.parrot.org/parrot/changeset/41064

Log:
[t] Add some notes to namespace.t about what still needs to be tested. Add one easy test for behavior in PDD21

Modified:
   trunk/t/pmc/namespace.t

Modified: trunk/t/pmc/namespace.t
==============================================================================
--- trunk/t/pmc/namespace.t	Sun Sep  6 11:59:52 2009	(r41063)
+++ trunk/t/pmc/namespace.t	Sun Sep  6 12:18:11 2009	(r41064)
@@ -33,13 +33,26 @@
 
 =back
 
+Items that need to be tested according to PDD21, or the current source code
+of the NameSpace PMC:
+
+=over 4
+
+=item* methods: add_sub, del_sub, del_var, del_namespace
+
+=item* Typed and Untyped interfaces
+
+=item* Subclassing NameSpace (If it's possible)
+
+=back
+
 =cut
 
 .namespace []
 
 .sub main :main
     .include 'test_more.pir'
-    plan(58)
+    plan(59)
 
     create_namespace_pmc()
     verify_namespace_type()
@@ -75,6 +88,10 @@
     typeof $S0, $P0
     is($S0, "NameSpace", "Root NameSpace is a NameSpace")
 
+    # While we're here. Prove that the root namespace stringifies to ""
+    $S0 = $P0
+    is($S0, "", "Root NameSpace stringifies to empty string")
+
     # parrot namespace
     $P1 = $P0["parrot"]
     typeof $S0, $P1


More information about the parrot-commits mailing list