### ----------------------------------------------------
### -- Rakudo::Version
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/01-basic.rakutest
### ----------------------------------------------------
use Test;
use rakudo v2015.12+;

my $VERSION := $*RAKU.compiler.version;

plan 6;

pass "Use command executed ok";

eval-lives-ok "use rakudo $VERSION.raku()",   "did $VERSION match ok";
eval-lives-ok "use rakudo $VERSION.raku()+",  "did $VERSION+ match ok";
eval-lives-ok "use rakudo $VERSION.raku().*", "did $VERSION.* match ok";
eval-lives-ok "use rakudo * >= v2015.12",     "did * >= v2025.12 match";

throws-like { "use rakudo * > v9999999".EVAL }, X::AdHoc,
  payload => / 'Version matcher failed to accept' /,
  "did * > v9999999 not match";

# vim: expandtab shiftwidth=4


