Skip to content

Commit 2252f8b

Browse files
committed
Fudge 6 tests for JVM (todo); skip all tests for Parrot
1 parent 1ecd460 commit 2252f8b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

S12-meta/primitives.t

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ use Test;
44

55
plan 17;
66

7+
#?rakudo.parrot skip 'Metamodel::Primitives NYI'
78
{
89
my $union-type-checks = 0;
910
my $union-find-method-calls = 0;
10-
11+
1112
class UnionTypeHOW {
1213
has @!types;
13-
14+
1415
submethod BUILD(:@!types) { }
15-
16+
1617
method new_type(*@types) {
1718
my $how = self.new(:@types);
1819
my $type = Metamodel::Primitives.create_type($how, 'Uninstantiable');
@@ -35,10 +36,10 @@ plan 17;
3536
%cache{.key} //= .value;
3637
}
3738
Metamodel::Primitives.install_method_cache($type, %cache);
38-
39+
3940
$type
4041
}
41-
42+
4243
method type_check(Mu $, Mu \check) {
4344
$union-type-checks++;
4445
for @!types, Any, Mu {
@@ -78,16 +79,15 @@ plan 17;
7879
$int-or-rat.^compose;
7980
$union-type-checks = 0;
8081
$union-find-method-calls = 0;
82+
#?rakudo.jvm 4 todo 'RT #123426'
8183
ok Int ~~ $int-or-rat, 'Union type works with cache (1)';
8284
ok Rat ~~ $int-or-rat, 'Union type works with cache (2)';
8385
ok 420 ~~ $int-or-rat, 'Union type works with cache (3)';
8486
ok 4.2 ~~ $int-or-rat, 'Union type works with cache (4)';
8587
nok Str ~~ $int-or-rat, 'Union type works with cache (5)';
8688
nok 'w' ~~ $int-or-rat, 'Union type works with cache (6)';
87-
89+
90+
#?rakudo.jvm 2 todo 'RT #123426'
8891
is $union-type-checks, 0, 'Really did use type cache';
8992
is $union-find-method-calls, 0, 'Really did use method cache';
9093
}
91-
92-
93-

0 commit comments

Comments
 (0)