Skip to content

Commit

Permalink
[v6.d REVIEW] Simplify Attribute.gist test
Browse files Browse the repository at this point in the history
Orig: 1458b47cf
  • Loading branch information
zoffixznet committed Jul 15, 2018
1 parent e5e61d9 commit 8db9fe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S12-introspection/attributes.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 38;
plan 39;

=begin pod
Expand Down Expand Up @@ -73,9 +73,9 @@ is @attrs[0].name, '$!c', 'get correct attribute with introspection';
}

{ # coverage; 2016-09-21
like Attribute.new(:name('test-name'), :type(Int), :package('Foo')).gist,
/'Int' .* 'test-name' | 'test-name' .* 'Int'/,
'.gist of an Attribute includes name and type';
my $g := Attribute.new(:name<test-name>, :type(Int), :package<Foo>).gist;
like $g, /Int/, '.gist of an Attribute includes type';
like $g, /'test-name'/, '.gist of an Attribute includes name';
}

# RT #127059
Expand Down

0 comments on commit 8db9fe8

Please sign in to comment.