File: error.t

package info (click to toggle)
libtest-deep-perl 0.106-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 420 kB
  • ctags: 247
  • sloc: perl: 2,067; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings;

use t::std;

{
	my ($prem, @res) = eval {
		run_tests(
			sub {
				cmp_deeply([shallow([])], [[]], "bad special");
			}
		);
	};

	like($@, qr/^Found a special comparison in \$data->\[0\]\nYou can only the specials in the expects structure/,
		"bad special");
}