Skip to content

Instantly share code, notes, and snippets.

@magnolia-k
Created August 8, 2014 09:07
Show Gist options
  • Save magnolia-k/22f6cdc6456f5c83ba9b to your computer and use it in GitHub Desktop.
Save magnolia-k/22f6cdc6456f5c83ba9b to your computer and use it in GitHub Desktop.
non latin-1 test script name
$ cat tést.t
use strict;
use warnings;
use Test::More qw/modern/;
ok(0, "test failure" );
subtest 'subtest' => sub {
ok(0, "sub test failure" );
};
done_testing;
$
$
$ perl -Ilib tést.t
not ok 1 - test failure
# Failed test 'test failure'
# at tést.t line 6.
# Subtest: subtest
not ok 1 - sub test failure
# Failed test 'sub test failure'
# at tést.t line 9.
1..1
# Looks like you failed 1 test of 1.
not ok 2 - subtest
# Failed test 'subtest'
# at tést.t line 10.
1..2
# Looks like you failed 2 tests of 2.
@magnolia-k
Copy link
Author

latest alpha

$ perl -Ilib tést.t
not ok 1 - test failure
#   Failed test 'test failure'
#   at tést.t line 6.
# Subtest: subtest
    not ok 1 - sub test failure
    #   Failed test 'sub test failure'
    #   at tést.t line 9.
    1..1
    # Looks like you failed 1 test of 1.
not ok 2 - subtest
#   Failed test 'subtest'
#   at tést.t line 10.
1..2
# Looks like you failed 2 tests of 2.

great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment