Permalink
Browse files

added test for index

  • Loading branch information...
1 parent bfdc556 commit 0dd4967766422a93a350617936ac0c2bf0961edd @brunoV brunoV committed Mar 6, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 t/index.t
View
@@ -0,0 +1,11 @@
+use Test::More qw(no_plan);
+use strict;
+use warnings;
+use autobox::Core;
+
+my $string = "I like pie";
+my $substr = "pie";
+
+is $string->index($substr), 7;
+is $string->index($substr, 8), -1;
+

0 comments on commit 0dd4967

Please sign in to comment.