3 # This file is part of Language::Befunge.
4 # Copyright (c) 2001-2007 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 !;
25 my $bef = Language::Befunge->new;
28 # In order to see what happens...
31 open OUT, ">$file" or die $!;
37 open OUT, "<$file" or die $!;
50 $bef->store_code( <<'END_OF_CODE' );
57 $bef->store_code( <<'END_OF_CODE' );
63 BEGIN { $tests += 2 };
67 $bef->store_code( <<'END_OF_CODE' );
74 $bef->store_code( <<'END_OF_CODE' );
80 BEGIN { $tests += 2 };
84 $bef->store_code( <<'END_OF_CODE' );
91 $bef->store_code( <<'END_OF_CODE' );
97 BEGIN { $tests += 2 };
101 $bef->store_code( <<'END_OF_CODE' );
102 12345678"azertyuiop"n..q
107 BEGIN { $tests += 1 };
109 BEGIN { plan tests => $tests };