Author: coke
Date: Tue Apr 24 08:10:04 2007
New Revision: 18317

Modified:
   trunk/   (props changed)
   trunk/t/pmc/addrregistry.t

Log:
[t]
* Convert another test to parrot from perl



Modified: trunk/t/pmc/addrregistry.t
==============================================================================
--- trunk/t/pmc/addrregistry.t  (original)
+++ trunk/t/pmc/addrregistry.t  Tue Apr 24 08:10:04 2007
@@ -1,18 +1,11 @@
-#!perl
+#! parrot
 # Copyright (C) 2006, The Perl Foundation.
 # $Id$
 
-use strict;
-use warnings;
-use lib qw( . lib ../lib ../../lib );
-use Test::More;
-use Parrot::Test tests => 1;
-
 =head1 NAME
 
 t/pmc/addrregistry.t - test AddrRegistry PMC
 
-
 =head1 SYNOPSIS
 
     % prove t/pmc/addrregistry.t
@@ -23,14 +16,23 @@
 
 =cut
 
-pir_output_is( <<'CODE', <<'OUT', 'new' );
-.sub 'test' :main
+.sub main :main
+    # load this library
+    load_bytecode 'library/Test/More.pir'
+
+    # get the testing functions
+    .local pmc exports, curr_namespace, test_namespace
+    curr_namespace = get_namespace
+    test_namespace = get_namespace [ "Test::More" ]
+    exports = split " ", "plan diag ok is is_deeply like isa_ok"
+
+    test_namespace."export_to"(curr_namespace, exports)
+
+    plan(1)
+
     new P0, .AddrRegistry
-    print "ok 1\n"
+    ok(1, 'Instantiated .AddrRegistry')
 .end
-CODE
-ok 1
-OUT
 
 # Local Variables:
 #   mode: cperl

Reply via email to