mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-16 10:55:09 +00:00
add texttest fixture for Perl 5 code
This commit is contained in:
1 parent
0a772512de
commit
9d1856b254
4 files changed
+79
-2
No files matched your search
+2
-2
@@ -8,8 +8,8 @@ sub new {
|
||||
return bless \%attrs, $class;
|
||||
}
|
||||
|
||||
sub _data_printer { ## no critic (ProhibitUnusedPrivateSubroutines)
|
||||
my ( $self, $properties ) = @_;
|
||||
sub to_string {
|
||||
my ($self) = @_;
|
||||
return $self->{name} . ', ' . $self->{sell_in} . ', ' . $self->{quality};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user