From 178e51cad7ad216d560aa2d203778f4683e89f85 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Jan 2015 16:08:11 +0100 Subject: [PATCH] Bug 13579: Prefer like instead of ok to match a regex Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/www/history.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/www/history.t b/t/db_dependent/www/history.t index 55748c7a5c..0ad9c949ee 100644 --- a/t/db_dependent/www/history.t +++ b/t/db_dependent/www/history.t @@ -61,7 +61,7 @@ my $encoded_latin_name = Encode::encode('UTF-8', 'Frédéric Demians'); my $encoded_cyrillic_name = Encode::encode('UTF-8', 'Сергій Дубик'); my $history_page = Encode::encode('UTF-8', $agent->text()); -ok( $history_page =~ m/$encoded_latin_name/, "Latin characters with umlauts show correctly on the history page." ); -ok( $history_page =~ m/$encoded_cyrillic_name/, "Cyrillic characters with umlauts show correctly on the history page." ); +like( $history_page, qr/$encoded_latin_name/, "Latin characters with umlauts show correctly on the history page." ); +like( $history_page, qr/$encoded_cyrillic_name/, "Cyrillic characters with umlauts show correctly on the history page." ); 1; -- 2.39.2