From 92250a22cd236c3d169f9c4051f29dcaef578183 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Oct 2021 15:53:47 +0200 Subject: [PATCH] Bug 27526: Fix perlcritic in tests Problem while critiquing "t/db_dependent/Koha/Item.t": Can't parse code: Encountered unexpected character '195' non-ascii chars must be quoted when used as hash keys --- t/db_dependent/Koha/Item.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index e1274a414fd..617dc8a9027 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -1137,8 +1137,8 @@ subtest 'columns_to_str' => sub { my $s = $item->columns_to_str; is( $s->{itemlost}, 'Lost' ); is( $s->{dateaccessioned}, '2020-12-15'); - is( $s->{é}, 'value é'); - is( $s->{è}, $library->branchname ); + is( $s->{'é'}, 'value é'); + is( $s->{'è'}, $library->branchname ); $cache->clear_from_cache("MarcStructure-0-"); $cache->clear_from_cache("MarcStructure-1-"); -- 2.25.1