Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[t/spec] Test for RT 65658

git-svn-id: http://svn.pugscode.org/pugs@28783 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit 1223acd172566c5f3864c79785b525d25659548e 1 parent 189e26b
kyle authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 S12-enums/thorough.t
View
12 S12-enums/thorough.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 71;
+plan *;
=begin description
@@ -110,4 +110,14 @@ ok Bool::True.perl ~~/^ 'Bool::True'/, 'Bool::True.perl';
eval_dies_ok 'RT66886::c', 'accessing non-value of enum dies proper-like';
}
+# RT #65658
+{
+ enum RT65658 <Todo Bug Feature Ticket>;
+ #?rakudo 2 skip 'RT 65658'
+ is RT65658(2), RT65658::Feature, 'can index enum by number';
+ is RT65658((Todo + 3.2).Int), RT65658::Ticket, 'enum and math and index';
+}
+
+done_testing;
+
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.