summaryrefslogtreecommitdiff
path: root/t/warn_once.t
blob: e2dc61cff534228a60c0535bd4ff69f8af4dbd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl -w

use strict;
use warnings;

use Test::More tests => 2;
my @warns;
BEGIN {
    $SIG{__WARN__} = sub { push @warns, @_ };
}

use Encode::Locale;

BEGIN {
    use Encode;
    my $a = encode("UTF-8", "foo\xFF");
    ok $a, "foo\xC3\xBF";
}

is "@warns", "", 'no warnings';