projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b1e8bad
)
Testwarnung: doppelte "my $x" vermeiden
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 31 May 2021 09:26:55 +0000
(11:26 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 31 May 2021 09:28:21 +0000
(11:28 +0200)
t/x/exceptions.t
patch
|
blob
|
history
diff --git
a/t/x/exceptions.t
b/t/x/exceptions.t
index
18ae115
..
e54327b
100644
(file)
--- a/
t/x/exceptions.t
+++ b/
t/x/exceptions.t
@@
-22,7
+22,7
@@
for my $error_class (@classes) {
is $x->message, "test message", "$error_class(message): message works";
is "$x", "test message", "$error_class(message): stringify works";
is $x->message, "test message", "$error_class(message): message works";
is "$x", "test message", "$error_class(message): stringify works";
-
my
$x = $error_class->new(error => "test message");
+ $x = $error_class->new(error => "test message");
is $x->error, "test message", "$error_class(error): error works";
is $x->message, "test message", "$error_class(error): message works";
is $x->error, "test message", "$error_class(error): error works";
is $x->message, "test message", "$error_class(error): message works";
@@
-39,7
+39,7
@@
is $x->message, "stuff: broke", "tempalte: message works";
is "$x", "stuff: broke", "template: stringify works";
is "$x", "stuff: broke", "template: stringify works";
-
my
$x = SL::X::Inventory::Allocation->new(code => "DEADCOFFEE", message => "something went wrong");
+$x = SL::X::Inventory::Allocation->new(code => "DEADCOFFEE", message => "something went wrong");
is $x->code, "DEADCOFFEE", "extra fields work";
is $x->code, "DEADCOFFEE", "extra fields work";