### ----------------------------------------------------
### -- span
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/01-basic.rakutest
### ----------------------------------------------------
use Test;
use span;

plan 3;

is-deeply span(* < 10, 2, 2, 2, 5, 5, 7, 13, 9, 6, 2, 20, 4),
  ((2,2,2,5,5,7), (13,9,6,2,20,4)),
  'span with a single Callable';

is-deeply span( (* < 10, * < 20), 2, 2, 2, 5, 5, 7, 13, 9, 6, 2, 20, 4),
  ((2,2,2,5,5,7),(13,9,6,2),(20,4)),
  'span with two Callables';

is-deeply span( Int, 2, 2, 2, 5, 5, "a", "b", "c"),
  ((2,2,2,5,5),<a b c>),
  'span with a type object';

# vim: expandtab shiftwidth=4


