r104605 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r104604
|
r104605
|
r104606
>
Date:
22:34, 29 November 2011
Author:
platonides
Status:
deferred
Tags:
Comment:
Had this uncommited file lying around, with mtime 2010-10-11 02:03:55 GMT+2
It was added to $wgParserTestFiles in
r74609
but I may have made this file
before, and be left uncommited.
Modified paths:
/trunk/extensions/StringFunctions/strFunctionsParserTests.txt
(added) (
history
)
Diff
[
purge
]
Index: trunk/extensions/StringFunctions/strFunctionsParserTests.txt
—
—
@@ -0,0 +1,44 @@
2
+ Force the test runner to ensure the extension is loaded
3
+!! hooks
4
+len
5
+pos
6
+rpos
7
+!! endhooks
8
+
9
+!! test
10
+Len
11
+!! input
12
+{{#len: Hello }}
13
+!! output
14
+<p>5
15
+</p>
16
+!! end
17
+
18
+!! test
19
+First position
20
+!! input
21
+{{#pos: miruvor | r }}
22
+!! output
23
+<p>2
24
+</p>
25
+!! end
26
+
27
+!! test
28
+Position from offset
29
+!! input
30
+{{#pos: miruvor | 3 }}
31
+!! output
32
+<p>6
33
+</p>
34
+!! end
35
+
36
+!! test
37
+Last position
38
+!! input
39
+{{#rpos: miruvor}}
40
+!! output
41
+<p>6
42
+</p>
43
+!! end
44
+
45
+
Property changes on: trunk/extensions/StringFunctions/strFunctionsParserTests.txt
___________________________________________________________________
Added: svn:eol-style
1
46
+ native
Follow-up revisions
Revision
Commit summary
Author
Date
r106701
Fix parserTest format (follow-up
r104605
).
platonides
21:26, 19 December 2011
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r74609
Remove urlencode. It overwrites the more powerful core urlencode....
platonides
23:36, 10 October 2010
Status & tagging log
10:34, 5 December 2011
Hashar
(
talk
|
contribs
)
changed the
status
of r104605
[
removed:
new
added:
deferred]