Skip to content

Commit

Permalink
[t] Test suite refactoring.
Browse files Browse the repository at this point in the history
Moved builtins/type_declarations.t under t/spec/S29-type.
Don't know if it's really correct, but we can change it later.



git-svn-id: http://svn.pugscode.org/pugs@19707 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
cosimo committed Jan 26, 2008
1 parent 6a17b92 commit 8d850ed
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions S29-type/declarations.t
@@ -0,0 +1,32 @@
use v6-alpha;
use Test;

# L<S29/"Type Declarations">

#?rakudo skip 'Cannot parse pod'
{
=kwid

Test for some type declarations for built-in functions.

=cut
}

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;');

0 comments on commit 8d850ed

Please sign in to comment.