File: 99_synopsis.t

package info (click to toggle)
libsyntax-keyword-assert-perl 0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 196 kB
  • sloc: perl: 98; pascal: 69; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 176 bytes parent folder | download
1
2
3
4
5
6
7
8
9
use Test2::V0;

use Syntax::Keyword::Assert;

my $name = 'Alice';
my $e = dies { assert( $name eq 'Bob' ) };
like $e, qr/Assertion failed \("Alice" eq "Bob"\)/;

done_testing;