File: error.t

package info (click to toggle)
libtest-deep-perl 0.113-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 464 kB
  • ctags: 254
  • sloc: perl: 2,144; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
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 use specials in the expects structure/,
		"bad special");
}