NAME
Test::Kantan::Expect - Assertion
SYNOPSIS
expect($x)->to_be(3);
METHODS
expect($x)->to_be_defined()-
Pass if the value is defined.
expect($x)->to_be_truthy()expect($x)->to_be_true()-
Pass if the value is truthy.
expect($x)->to_be_falsy()expect($x)->to_be_false()-
Pass if the value is falsy.
expect($x)->to_equal($y)expect($x)->to_be($y)-
Pass if the value to equal $y.
expect($code : CodeRef)->to_throw()-
Take the coderef. Pass if the code throws exception.
expect($x)->to_match($re : Regexp)-
Pass if $x matches $re.
expect($x)->to_be_a($v : Regexp)expect($x)->to_be_an($v : Regexp)-
Pass if
$x->$_isa($v)is true.