### ----------------------------------------------------
### -- unprint
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/01-basic.rakutest
### ----------------------------------------------------
use Test;

plan 7;

for (
  "print q/hello/",           "hello",
  "print q/hello/,q/world/",  "helloworld",
  "say q/hello/",             "hello\n",
  "say q/hello/,q/world/",    "helloworld\n",
  "say Int",                  "(Int)\n",
  "say Int, Str",             "(Int)(Str)\n",
  "put (1,2)",                "1 2\n",
) -> $string, $expected {

    my $output = run(
      $*EXECUTABLE, '-I', 'lib', '-M', 'unprint', '-e', $string, :out
    ).out.slurp;
    is $output, $expected, "did '$string' give '$expected'";
}

# vim: expandtab sw=4


