From d59ce8d0c6cf27d81fbedda333e9826edf7230a4 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 19 Mar 2009 06:17:18 +0000 Subject: [PATCH] Parser tests for date autoformatting --- maintenance/parserTests.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 7a30eac770..9ce0d02417 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -7251,6 +7251,33 @@ Multibyte character in padright

!! end +!! test +Formatted date +!! input +[[2009-03-24]] +!! result +

2009-03-24 +

+!!end + +!!test +Formatted unlinked date +!!input +{{formatdate:2009-03-24}} +!! result +

2009-03-24 +

+!! end + +!!test +Formatted unlinked date with default format +!!input +{{formatdate:2009-03-24|mdy}} +!! result +

March 24, 2009 +

+!! end + # # # -- 2.20.1