allow undef to return from macros, fix empty string returns, test a few more cases
This commit is contained in:
parent
79e88a867a
commit
4f0663f199
4 changed files with 62 additions and 18 deletions
12
t/lib/WebGUI/Macro/MacroEmpty.pm
Normal file
12
t/lib/WebGUI/Macro/MacroEmpty.pm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package WebGUI::Macro::MacroEmpty;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub process {
|
||||
my $session = shift;
|
||||
return "";
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
12
t/lib/WebGUI/Macro/MacroUndef.pm
Normal file
12
t/lib/WebGUI/Macro/MacroUndef.pm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package WebGUI::Macro::MacroUndef;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub process {
|
||||
my $session = shift;
|
||||
return;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue