Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added test for index

  • Loading branch information...
commit 0dd4967766422a93a350617936ac0c2bf0961edd 1 parent bfdc556
@brunoV brunoV authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 t/index.t
View
11 t/index.t
@@ -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;
+
Please sign in to comment.
Something went wrong with that request. Please try again.