2 # Copyright (C) 2005-2008, Parrot Foundation.
7 use lib qw( . lib ../lib ../../lib );
9 use Parrot::Test tests => 1;
13 t/examples/namespace.t - Test examples in F<examples/namespace>
17 % prove t/examples/namespace.t
21 Test the examples in F<examples/namespace>.
29 Bernhard Schmalhofer - <Bernhard.Schmalhofer@gmx.de>
33 # Set up expected output for examples
35 # cannot test the exact result, just adding one method somewhere
36 # changes all. Also namespaces are hashes. And we do not gurantee any specific
37 # order of keys. test the name of the 2 toplevel names, parrot is using
39 'namespace_dump.pir' => << 'END_EXPECTED',
41 ^MULTI\s=>\sMULTI)|(?:^MULTI\s=>\sMULTI.*
46 while ( my ( $example, $expected ) = each %expected ) {
47 example_output_like( "examples/namespace/$example", $expected );
52 # cperl-indent-level: 4
55 # vim: expandtab shiftwidth=4: