Skip to content

Commit ac7ea9d

Browse files
committed
correct or remove tests that assume you can compare type objects with ===
1 parent 9e5e20c commit ac7ea9d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

S12-class/inheritance.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ eval_lives_ok 'class NotAny is Mu { }; NotAny.new', 'inheritance from Mu works';
124124
{
125125
class DirectMu is Mu { };
126126
ok DirectMu !~~ Any, 'class inheriting from Mu is not Any';
127-
ok !( any(DirectMu.^parents) === Any), 'and Any does not appear in the list of parents either';
127+
ok !( any(DirectMu.^parents).gist eq 'Any()'), 'and Any does not appear in the list of parents either';
128128
}
129129

130130
eval_dies_ok 'class RT64642 is ::Nowhere {}', 'dies: class D is ::C {}';

S32-scalar/undef.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ perl6-specific tests.
2323
#
2424
# Larry
2525

26-
plan 87;
26+
plan 86;
2727

2828
our $GLOBAL;
2929

3030
# L<S32::Basics/Mu/=item defined>
3131

32-
ok(Mu === Mu, "Mu is equal to Mu");
3332
ok(!defined(Mu), "Mu is not defined");
3433

3534
{

0 commit comments

Comments
 (0)