### ----------------------------------------------------
### -- P5index
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/02-index.t
### ----------------------------------------------------
use v6.*;
use Test;
use P5index;

plan 5;

is index("foobar","bar"),    3, 'did we find bar';
is index("foobar","bar",-1), 3, 'did we find bar before beginning';
is index("foofoo","bar"),   -1, 'did we *not* find bar';
is index("foofoo","foo",1),  3, 'did we find the second foo';
is index("foofoo","foo",9), -1, 'did we *not* find foo after end';

# vim: expandtab shiftwidth=4


