X-Git-Url: http://git.ieval.ro/?p=app-scheme79asm.git;a=blobdiff_plain;f=t%2FCompiler.t;h=e50107aca0577c7c55aed950ba77d897d1bd0195;hp=847cdb2e72e5777e52479297a927164cc16b69bd;hb=04be023f8bc114edb6dddae6cee3bd58ea758561;hpb=6c9fb71ea4cea174575c2f09f8d12ae0c95c8457 diff --git a/t/Compiler.t b/t/Compiler.t index 847cdb2..e50107a 100644 --- a/t/Compiler.t +++ b/t/Compiler.t @@ -3,7 +3,7 @@ use strict; use warnings; use Data::Dump::Sexp; -use Test::More tests => 31; +use Test::More tests => 32; BEGIN { use_ok('App::Scheme79asm::Compiler') }; @@ -28,6 +28,7 @@ sub is_toplevel { } is_sexp new->process_quoted(to_sexp '5'), '(SYMBOL 3)', 'process_quoted 5'; +is_sexp new->process_quoted(to_sexp 'NIL'), '(LIST 0)', 'process_quoted NIL'; is_sexp new->process_quoted(to_sexp '()'), '(LIST 0)', 'process_quoted ()'; is_sexp new->process_quoted(to_sexp '(5 foo)'), '(LIST (LIST (LIST 0) (SYMBOL 3)) (SYMBOL 4))', 'process_quoted (5 foo)'; is_sexp new->process_quoted(to_sexp '(((5)))'), '(LIST (LIST 0) (LIST (LIST 0) (LIST (LIST 0) (SYMBOL 3))))', 'process_quoted (((5)))';