[svn:parrot] r42269 - trunk/t/op

dukeleto at svn.parrot.org dukeleto at svn.parrot.org
Thu Nov 5 15:45:38 UTC 2009


Author: dukeleto
Date: Thu Nov  5 15:45:36 2009
New Revision: 42269
URL: https://trac.parrot.org/parrot/changeset/42269

Log:
[t][TT# 1186] Convert t/op/00ff-unix.t to PIR, bubaflub++

Modified:
   trunk/t/op/00ff-unix.t

Modified: trunk/t/op/00ff-unix.t
==============================================================================
--- trunk/t/op/00ff-unix.t	Thu Nov  5 12:53:25 2009	(r42268)
+++ trunk/t/op/00ff-unix.t	Thu Nov  5 15:45:36 2009	(r42269)
@@ -1,13 +1,7 @@
-#!perl
-# Copyright (C) 2001-2005, Parrot Foundation.
+#!parrot
+# Copyright (C) 2001-2009, Parrot Foundation.
 # $Id$
 
-use strict;
-use warnings;
-use lib qw( . lib ../lib ../../lib );
-use Test::More;
-use Parrot::Test tests => 1;
-
 =head1 NAME
 
 t/op/00ff-unix.t - UNIX File format
@@ -22,16 +16,24 @@
 
 =cut
 
-pasm_output_is( <<'CODE', <<'OUT', "fileformat unix" );
-    print "ok\n"
-    end
+.sub main :main
+    .include 'test_more.pir'
+    plan(1)
+
+    test_fileformat_unix()
+.end
+
+.sub test_fileformat_unix
+    lives_ok( <<'CODE', 'fileformat unix' )
+.sub main
+    print "testing\n"
+.end
 CODE
-ok
-OUT
+.end
 
 # Local Variables:
 #   mode: cperl
 #   cperl-indent-level: 4
 #   fill-column: 100
 # End:
-# vim: expandtab shiftwidth=4:
+# vim: expandtab shiftwidth=4 filetype=pir:


More information about the parrot-commits mailing list