Merge branch 'jk/doc-remote-helpers-markup-fix'
[gitweb.git] / t / t0202 / test.pl
index 4101833a8e87e4a9b6e28aa533d6a5748f7f8703..2cbf7b95907384b4b4b5ac91f801026810b85f0a 100755 (executable)
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 use POSIX qw(:locale_h);
-use Test::More tests => 11;
+use Test::More tests => 13;
 use Git::I18N;
 
 my $has_gettext_library = $Git::I18N::__HAS_LIBRARY;
@@ -32,6 +32,7 @@
        my %prototypes = (qw(
                __      $
                __n     $$$
+               N__     $
        ));
        while (my ($sub, $proto) = each %prototypes) {
                is(prototype(\&{"Git::I18N::$sub"}), $proto, "sanity: $sub has a $proto prototype");
@@ -55,6 +56,8 @@
                "Get singular string through __n() in C locale");
        is(__n($got_singular, $got_plural, 2), $expect_plural,
                "Get plural string through __n() in C locale");
+
+       is(N__($got), $expect, "Passing a string through N__() in the C locale works");
 }
 
 # Test a basic message on different locales