X-Git-Url: http://git.ieval.ro/?p=app-scheme79asm.git;a=blobdiff_plain;f=t%2FCompiler.t;h=847cdb2e72e5777e52479297a927164cc16b69bd;hp=11718b1a642ca6bd13f9a368b57cebf7fbcc8f91;hb=0fea28cb1073527c855de945782711f89a47e227;hpb=2aba73d532a55cd0cfa7a32b1e9270a15b0b53d7 diff --git a/t/Compiler.t b/t/Compiler.t index 11718b1..847cdb2 100644 --- a/t/Compiler.t +++ b/t/Compiler.t @@ -2,12 +2,14 @@ use strict; use warnings; +use Data::Dump::Sexp; use Test::More tests => 31; -BEGIN { use_ok('App::Scheme79asm::Compiler', qw/pretty_print/) }; + +BEGIN { use_ok('App::Scheme79asm::Compiler') }; sub is_sexp { my ($expr, $expected, $name) = @_; - is pretty_print($expr), $expected, $name; + is dump_sexp($expr), $expected, $name; } sub to_sexp { @@ -43,8 +45,8 @@ is_toplevel '(lambda append (x y) (if (atom x) y (cons (car x) (append (cdr x) y sub pp_roundtrip { my ($string) = @_; - my $pp = uc App::Scheme79asm::Compiler::pretty_print(to_sexp $string); - is $pp, uc($string), "pretty_print roundtrip $string"; + my $pp = uc dump_sexp(to_sexp $string); + is $pp, uc($string), "dump_sexp roundtrip $string"; } pp_roundtrip '()';