3 # This file is part of Inline::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 terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or (at
9 # your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #-------------------------------------#
25 #-------------------------------------#
37 ok( bf_cmp(2,4), -1 );
40 BEGIN { $tests += 4 };
43 use Inline BEF => <<'END_OF_CODE';
44 019p > : #v _ v ;:bf_reverse;
45 @ ^ p91 +1 g91 p8 g91 < $
49 ok( join "", map {chr} bf_reverse( "foobar" ) eq "raboof" );
50 BEGIN { $tests += 1 };
53 BEGIN { plan tests => $tests };