Update the bundled external perl module Text-Template to version 1.56
[openssl.git] / external / perl / Text-Template-1.56 / t / nested-tags.t
diff --git a/external/perl/Text-Template-1.56/t/nested-tags.t b/external/perl/Text-Template-1.56/t/nested-tags.t
new file mode 100755 (executable)
index 0000000..79bf6a1
--- /dev/null
@@ -0,0 +1,26 @@
+#!perl
+#
+# Test for breakage of Dist::Milla in v1.46
+#
+
+use strict;
+use warnings;
+use Text::Template;
+
+BEGIN {
+    # Minimum Test::More version; 0.94+ is required for `done_testing`
+    unless (eval { require Test::More; "$Test::More::VERSION" >= 0.94; }) {
+        Test::More::plan(skip_all => '[ Test::More v0.94+ ] is required for testing');
+    }
+
+    Test::More->import;
+}
+
+my $tmpl = Text::Template->new(
+    TYPE       => 'STRING',
+    SOURCE     => q| {{ '{{$NEXT}}' }} |,
+    DELIMITERS => [ '{{', '}}' ]);
+
+is $tmpl->fill_in, ' {{$NEXT}} ';
+
+done_testing;