Created
June 20, 2014 01:20
-
-
Save hoelzro/4a904953f9d8de749185 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Test; | |
plan 1; | |
my role TestRole { | |
} | |
my class TestObject does TestRole { | |
} | |
my @objects = (TestObject.new, TestObject.new, TestObject.new); | |
is( +(@objects.grep(* ~~ TestRole)), 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment