From 8d850ed378790911f9ba41746bb77338ac128b5e Mon Sep 17 00:00:00 2001 From: cosimo Date: Sat, 26 Jan 2008 22:25:22 +0000 Subject: [PATCH] [t] Test suite refactoring. 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 --- S29-type/declarations.t | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 S29-type/declarations.t diff --git a/S29-type/declarations.t b/S29-type/declarations.t new file mode 100644 index 0000000000..b6ffe4de3d --- /dev/null +++ b/S29-type/declarations.t @@ -0,0 +1,32 @@ +use v6-alpha; +use Test; + +# L + +#?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;');