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' );
108 $bef->store_code( <<'END_OF_CODE' );
114 BEGIN { $tests += 2 };
118 $bef->store_code( <<'END_OF_CODE' );
125 $bef->store_code( <<'END_OF_CODE' );
131 BEGIN { $tests += 2 };
135 $bef->store_code( <<'END_OF_CODE' );
142 $bef->store_code( <<'END_OF_CODE' );
148 BEGIN { $tests += 2 };
152 $bef->store_code( <<'END_OF_CODE' );
159 $bef->store_code( <<'END_OF_CODE' );
165 BEGIN { $tests += 2 };
169 $bef->store_code( <<'END_OF_CODE' );
176 $bef->store_code( <<'END_OF_CODE' );
182 BEGIN { $tests += 2 };
186 $bef->store_code( <<'END_OF_CODE' );
193 $bef->store_code( <<'END_OF_CODE' );
199 BEGIN { $tests += 2 };
203 $bef->store_code( <<'END_OF_CODE' );
210 $bef->store_code( <<'END_OF_CODE' );
216 BEGIN { $tests += 2 };
220 $bef->store_code( <<'END_OF_CODE' );
227 $bef->store_code( <<'END_OF_CODE' );
233 BEGIN { $tests += 2 };
237 $bef->store_code( <<'END_OF_CODE' );
244 $bef->store_code( <<'END_OF_CODE' );
250 BEGIN { $tests += 2 };
254 $bef->store_code( <<'END_OF_CODE' );
261 $bef->store_code( <<'END_OF_CODE' );
267 BEGIN { $tests += 2 };
271 $bef->store_code( <<'END_OF_CODE' );
278 $bef->store_code( <<'END_OF_CODE' );
284 BEGIN { $tests += 2 };
288 $bef->store_code( <<'END_OF_CODE' );
295 $bef->store_code( <<'END_OF_CODE' );
301 BEGIN { $tests += 2 };
305 $bef->store_code( <<'END_OF_CODE' );
312 $bef->store_code( <<'END_OF_CODE' );
318 BEGIN { $tests += 2 };
322 $bef->store_code( <<'END_OF_CODE' );
329 $bef->store_code( <<'END_OF_CODE' );
335 BEGIN { $tests += 2 };
338 BEGIN { plan tests => $tests };