summaryrefslogtreecommitdiff
path: root/t/20-modules/Type-Tiny-Intersection
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-01-02 12:38:52 +0100
committerJonas Smedegaard <dr@jones.dk>2023-01-02 12:38:52 +0100
commita38b05357b20ef15ca83800e28f1fb44e6c6b87b (patch)
tree14d7988daaf185faee2d37857b4bfd37448b3006 /t/20-modules/Type-Tiny-Intersection
parent1e2074ab6e5a2b953591c5c912e23cedffea8402 (diff)
parent5bdc3f3302539003af87a9149b3e8b4dcd3ec626 (diff)
New upstream version 2.002000
Diffstat (limited to 't/20-modules/Type-Tiny-Intersection')
-rw-r--r--t/20-modules/Type-Tiny-Intersection/basic.t9
-rw-r--r--t/20-modules/Type-Tiny-Intersection/cmp.t2
-rw-r--r--t/20-modules/Type-Tiny-Intersection/constrainedobject.t2
-rw-r--r--t/20-modules/Type-Tiny-Intersection/errors.t2
4 files changed, 11 insertions, 4 deletions
diff --git a/t/20-modules/Type-Tiny-Intersection/basic.t b/t/20-modules/Type-Tiny-Intersection/basic.t
index 433f3b9d..9d5cf225 100644
--- a/t/20-modules/Type-Tiny-Intersection/basic.t
+++ b/t/20-modules/Type-Tiny-Intersection/basic.t
@@ -16,7 +16,7 @@ Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
=head1 COPYRIGHT AND LICENCE
-This software is copyright (c) 2013-2014, 2017-2022 by Toby Inkster.
+This software is copyright (c) 2013-2014, 2017-2023 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -28,6 +28,7 @@ use warnings;
use lib qw( ./lib ./t/lib ../inc ./inc );
use Test::More;
+use Test::Fatal;
use Test::TypeTiny;
use BiggerLib qw( :types );
@@ -108,4 +109,10 @@ should_pass(2, $SmallEven);
should_fail(20, $SmallEven);
should_fail(3, $SmallEven);
+isnt(
+ exception { push @{ $SmallEven }, 'quux' },
+ undef,
+ 'cannot push to overloaded arrayref'
+);
+
done_testing;
diff --git a/t/20-modules/Type-Tiny-Intersection/cmp.t b/t/20-modules/Type-Tiny-Intersection/cmp.t
index 1ba7826f..9c3b69de 100644
--- a/t/20-modules/Type-Tiny-Intersection/cmp.t
+++ b/t/20-modules/Type-Tiny-Intersection/cmp.t
@@ -12,7 +12,7 @@ Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
=head1 COPYRIGHT AND LICENCE
-This software is copyright (c) 2019-2022 by Toby Inkster.
+This software is copyright (c) 2019-2023 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff --git a/t/20-modules/Type-Tiny-Intersection/constrainedobject.t b/t/20-modules/Type-Tiny-Intersection/constrainedobject.t
index 0fc838ba..7cdb00fc 100644
--- a/t/20-modules/Type-Tiny-Intersection/constrainedobject.t
+++ b/t/20-modules/Type-Tiny-Intersection/constrainedobject.t
@@ -13,7 +13,7 @@ Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
=head1 COPYRIGHT AND LICENCE
-This software is copyright (c) 2019-2022 by Toby Inkster.
+This software is copyright (c) 2019-2023 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff --git a/t/20-modules/Type-Tiny-Intersection/errors.t b/t/20-modules/Type-Tiny-Intersection/errors.t
index ad137b22..3a3195b3 100644
--- a/t/20-modules/Type-Tiny-Intersection/errors.t
+++ b/t/20-modules/Type-Tiny-Intersection/errors.t
@@ -12,7 +12,7 @@ Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
=head1 COPYRIGHT AND LICENCE
-This software is copyright (c) 2014, 2017-2022 by Toby Inkster.
+This software is copyright (c) 2014, 2017-2023 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.