Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tests for Distro.path-sep and VM.prefix
  • Loading branch information
lizmat committed May 31, 2014
1 parent e484df9 commit f7db8cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion S02-magicals/DISTRO.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 24;
plan 26;

=begin kwid
Expand All @@ -23,6 +23,7 @@ get a list of osnames that have actually passed tests.
ok $?DISTRO.signature, "Signature is '{$?DISTRO.signature}'";
ok $?DISTRO.desc, "Description is '{$?DISTRO.desc}'";
ok $?DISTRO.release, "Release info is '{$?DISTRO.release}'";
ok $?DISTRO.path-sep, "Path separator is '{$?DISTRO.path-sep}'";

ok $?DISTRO.perl, 'We can do a $?DISTRO.perl';
ok $?DISTRO.gist, 'We can do a $?DISTRO.gist';
Expand All @@ -44,6 +45,7 @@ ok $*DISTRO.signature, "Signature is '{$*DISTRO.signature}'";
#?rakudo todo 'no Distro.desc yet'
ok $*DISTRO.desc, "Description is '{$*DISTRO.desc}'";
ok $*DISTRO.release, "Release info is '{$*DISTRO.release}'";
ok $*DISTRO.path-sep, "Path separator is '{$*DISTRO.path-sep}'";

ok $*DISTRO.perl, 'We can do a $*DISTRO.perl';
ok $*DISTRO.gist, 'We can do a $*DISTRO.gist';
Expand Down
4 changes: 3 additions & 1 deletion S02-magicals/VM.t
Expand Up @@ -3,7 +3,7 @@ use v6;
use Test;

my $isjvm = $*VM.name eq 'jvm';
plan 28 + 2 * $isjvm;
plan 30 + 2 * $isjvm;

# $?VM.name is the Virtual machine we were compiled in.
#?rakudo skip 'unimpl $?VM'
Expand All @@ -18,6 +18,7 @@ plan 28 + 2 * $isjvm;
ok $?VM.desc, "Description is '{$?VM.desc}'";
ok $?VM.precomp-ext, "Extension is '{$?VM.precomp-ext}'";
ok $?VM.precomp-target, "Extension is '{$?VM.precomp-target}'";
ok $?VM.prefix, "Prefix is '{$?VM.prefix}'";

ok $?VM.perl, 'We can do a $?VM.perl';
ok $?VM.gist, 'We can do a $?VM.gist';
Expand All @@ -41,6 +42,7 @@ ok $*VM.properties, "We have properties" if $isjvm;
ok $*VM.desc, "Description is '{$*VM.desc}'";
ok $*VM.precomp-ext, "Extension is '{$*VM.precomp-ext}'";
ok $*VM.precomp-target, "Extension is '{$*VM.precomp-target}'";
ok $*VM.prefix, "Prefix is '{$*VM.prefix}'";

ok $*VM.perl, 'We can do a $*VM.perl';
ok $*VM.gist, 'We can do a $*VM.gist';
Expand Down

0 comments on commit f7db8cd

Please sign in to comment.