Skip to content

Commit

Permalink
utf8 in tests/tests.t
Browse files Browse the repository at this point in the history
  • Loading branch information
bessarabov committed Nov 12, 2023
1 parent 38ddb96 commit b888de2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/tests.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

use strict;
use warnings FATAL => 'all';
use utf8;
use open qw(:std :utf8);

use Cwd qw(cwd);
use Path::Tiny;
Expand All @@ -17,7 +19,7 @@ sub main {
my $test_dir = $cwd . '/' . $dir;

if (-e $test_dir . '/cmd_and_expected_output') {
my $cmd_and_expected_output = path($test_dir . '/cmd_and_expected_output')->slurp();
my $cmd_and_expected_output = path($test_dir . '/cmd_and_expected_output')->slurp_utf8();
my ($cmd, $expected_output) = split /\n/, $cmd_and_expected_output, 2;

if ($cmd =~ /\$ (.*)/) {
Expand Down

0 comments on commit b888de2

Please sign in to comment.