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

plan 5;

is rindex("foobar","bar"),    3, 'did we find bar';
is rindex("foobar","bar",99), 3, 'did we find bar after end';
is rindex("foofoo","bar"),   -1, 'did we *not* find bar';
is rindex("foofoo","foo",1),  0, 'did we find the first foo';
is rindex("foofoo","foo",9),  3, 'did we find the second foo after end';

# vim: expandtab shiftwidth=4


