Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 16 lines (10 sloc) 0.394 kb
dbe034b Moritz Lenz new test file for type objects
moritz authored
1 use v6;
2 use Test;
3
7336806 Moritz Lenz test the return value of a named class declaration (RT #72690)
moritz authored
4 plan 6;
dbe034b Moritz Lenz new test file for type objects
moritz authored
5
6 is Any.Str, '', 'Any.Str is empty string';
7 is Any.Stringy, '', 'Any.Str is empty string';
8 is Any.gist, 'Any()', 'Any.gist has those parens';
9
10 # maybe a bit too retrictive?
11 is Any.perl, 'Any', 'Any.perl does not have parens';
12
7336806 Moritz Lenz test the return value of a named class declaration (RT #72690)
moritz authored
13 is Any.^name, 'Any', '.^name';
14
15 isa_ok (class A { }).new, A, 'can instantiate return value of class declaration';
Something went wrong with that request. Please try again.