3 # This file is part of Language::Befunge.
4 # Copyright (c) 2001-2008 Jerome Quelin, all rights reserved.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the same terms as Perl itself.
11 #-----------------------------------#
13 #-----------------------------------#
16 use Language::Befunge;
17 use POSIX qw! tmpnam !;
24 my $unef = Language::Befunge->new( {syntax=>'unefunge98'} );
27 # In order to see what happens...
30 open OUT, ">$file" or die $!;
36 open OUT, "<$file" or die $!;
49 $unef = Language::Befunge->new( {file=>'t/_resources/q.bf', syntax=>'unefunge98'} );
53 BEGIN { $tests += 1 };
56 $unef = Language::Befunge->new( {syntax=>'unefunge98'} );
58 $unef->read_file( "t/_resources/q.bf" );
62 BEGIN { $tests += 1 };
66 $unef->store_code( <<'END_OF_CODE' );
72 BEGIN { $tests += 1 };
74 # Interpreter must treat non-characters as if they were an 'r' instruction.
76 $unef->store_code( <<'END_OF_CODE' );
82 BEGIN { $tests += 1 };
84 # Interpreter must treat non-commands as if they were an 'r' instruction.
86 $unef->store_code( <<'END_OF_CODE' );
92 BEGIN { $tests += 1 };
94 # Unefunge Interpreter treats North/South instructions as unknown characters.
96 $unef->store_code( <<"END_OF_CODE" );
102 BEGIN { $tests += 1 };
104 BEGIN { plan tests => $tests };