File: 01-hashorder

package info (click to toggle)
libclass-trait-perl 0.31-4.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 404 kB
  • sloc: perl: 2,467; makefile: 47
file content (25 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: fix #723925 by allowing for random hash key ordering
Author: Alexander Zangerl <az@debian.org>

--- a/t/130_trait_runtime_instance.t
+++ b/t/130_trait_runtime_instance.t
@@ -122,7 +122,7 @@ require Extra::TSpouse;
 
 eval { Extra::TSpouse->apply($foo) };
 ok $@,   'Trying to apply a runtime trait with unmet requirements should fail';
-like $@, qr/Requirement \(alimony\) for Extra::TSpouse not in Foo::/,
+like $@, qr/Requirement \((alimony|lawyer)\) for Extra::TSpouse not in Foo::/,
   '... with an appropriate error message';
 
 ok $foo->isa($anon_package),
--- a/t/140_trait_runtime_class.t
+++ b/t/140_trait_runtime_class.t
@@ -147,7 +147,7 @@ is_deeply \@does, [qw/TBomb TSpouse/],
 clean_inc();
 eval { Class::Trait->apply(Foo => 'Extra::TSpouse') };
 ok $@,   'Trying to apply a runtime trait with unmet requirements should fail';
-like $@, qr/Requirement \(alimony\) for Extra::TSpouse not in Foo/,
+like $@, qr/Requirement \((alimony|lawyer)\) for Extra::TSpouse not in Foo/,
   '... with an appropriate error message';
 
 clean_inc();