use Spit::Compile;
use Test;
plan 2;
my $name = 'sanity-tests';
nok compile(q|say "hello world"|,:$name).contains('e()'),"e() isn't included for no reason";

is compile(
    q{  foo("wee");
        sub ~foo($a) { $a ~ "bar" ~ "makeitlongenoughsonoinline" };
    },:$name).match(/'foo()'/,:g).elems,1,'only one definition of post-declared sub';

use Spit::Compile;
use Test;
plan 3;
my $name = 'sanity-tests';
nok compile(q|say "hello world"|,:$name).contains('e()'),"e() isn't included for no reason";

is compile(
    q{  foo("wee");
        sub ~foo($a) { $a ~ "bar" ~ "makeitlongenoughsonoinline" };
    },:$name).match(/'foo()'/,:g).elems,1,'only one definition of post-declared sub';

is compile(
    :$name,
    q{ <one two three>; for <four five six> {  } }
).match(/'IFS'/,:g).elems,1, 'only one declaration of IFS';

Add test for duplicate IFS
Add test for duplicate IFS
