Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 12d03bf7cd
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (22 sloc) 0.612 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
use v6;
use Test;

# L<S29/"Type Declarations">

=begin pod

Test for some type declarations for built-in functions.

=end pod

plan 9;

# Maybe this test should be modified to run with rakudo

my sub ok_eval1($code) {
    #?pugs todo 'feature'
    &Test::ok.nextwith(eval($code),$code)
}

ok_eval1('AnyChar.isa(Str)');
ok_eval1('Char.isa(Str)');
ok_eval1('Codepoint =:= Uni');
ok_eval1('CharLingua.isa(AnyChar)');
ok_eval1('Grapheme.isa(AnyChar)');
ok_eval1('Codepoint.isa(AnyChar)');
ok_eval1('Byte.isa(AnyChar)');
ok_eval1('Byte.isa(Num)');
ok_eval1('subset MatchTest of Item | junction;');

# vim: ft=perl6
Something went wrong with that request. Please try again.