Author: coke
Date: Tue Apr 24 07:24:25 2007
New Revision: 18314
Modified:
trunk/ (props changed)
trunk/t/pmc/version.t
Log:
[t]
* convert to parrot from perl
* undo a test to verify instantiation.
Modified: trunk/t/pmc/version.t
==============================================================================
--- trunk/t/pmc/version.t (original)
+++ trunk/t/pmc/version.t Tue Apr 24 07:24:25 2007
@@ -1,18 +1,11 @@
-#!perl
-# Copyright (C) 2006, The Perl Foundation.
+#! parrot
+# Copyright (C) 2006-2007, 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/version.t - test the Version PMC
-
=head1 SYNOPSIS
% prove t/pmc/version.t
@@ -23,14 +16,23 @@
=cut
-pir_output_is( <<'CODE', <<'OUT', 'new', todo => 'not yet working' );
-.sub 'test' :main
- new P0, .version
- print "ok 1\n"
+.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, .Version
+ ok(1, 'Instantiated .Version')
.end
-CODE
-ok 1
-OUT
# Local Variables:
# mode: cperl