Rename non-portable filenames
[gitmo/Mouse.git] / t / 600_todo_tests / 001_erfc.t
CommitLineData
fde8e43f 1#!/usr/bin/perl
2# This is automatically generated by author/import-moose-test.pl.
3# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4use t::lib::MooseCompat;
5
6# In the case where a child type constraint's parent constraint fails,
7# the exception should reference the parent type constraint that actually
8# failed instead of always referencing the child'd type constraint
9
10use strict;
11use warnings;
12
13use Test::More;
14use Test::Exception;
15
16BEGIN {
17 use_ok('Mouse::Util::TypeConstraints');
18}
19
20lives_ok {
21 subtype 'ParentConstraint' => as 'Str' => where {0};
22} 'specified parent type constraint';
23
24my $tc;
25lives_ok {
26 $tc = subtype 'ChildConstraint' => as 'ParentConstraint' => where {1};
27} 'specified child type constraint';
28
29{
30 my $errmsg = $tc->validate();
31
32 TODO: {
33 local $TODO = 'Not yet supported';
34 ok($errmsg !~ /Validation failed for 'ChildConstraint'/, 'exception references failing parent constraint');
35 };
36}
37
38done_testing;