From Wikipedia, the free encyclopedia
All 123 tests passed.
testChar
Text
Expected
Actual
Y
Y
{65,104,97}
Aha
Aha
Y
{"65",104,97}
Aha
Aha
Y
{98,108,97},2
blabla
blabla
Y
{"something"}
error
error
Y
"something",1,true
Y
{7,8,9}
error
error
Y
{{#invoke:Text|char|65 104 97}}
Aha
Aha
Y
{{#invoke:Text|char|98 108 97|*=2}}
blabla
blabla
Y
{{#invoke:Text|char|something|errors=0}}
testConcatParams
Text
Expected
Actual
Y
Y
{}
Y
A
A
A
Y
{"A"}
A
A
Y
{"A","B","C"}
A|B|C
A|B|C
Y
{"A","B","C"},"-"
A-B-C
A-B-C
Y
{"1","2","3"},nil,"%.2f"
1.00|2.00|3.00
1.00|2.00|3.00
Y
{{#invoke:Text|concatParams|1|2|3|separator=:|format=%.2f}}
1.00:2.00:3.00
1.00:2.00:3.00
testContainsCJK
Text
Expected
Actual
Y
false
false
Y
Draco Dormiens Nunquam Titillandus
false
false
Y
Никогда не щекочи спящего дракона
false
false
Y
सोए शेर को न जगाओ
false
false
Y
永远不要惊醒卧龙
true
true
Y
眠っているドラゴンをくすぐることはありません
true
true
Y
잠자는 용을 간지럽히지 마십시오
true
true
testExport
Text
Expected
Actual
Y
{{#invoke:Text|containsCJK|a}}
Y
{{#invoke:Text|containsCJK|日}}
1
1
Y
{{#invoke:Text|isLatinRange|日}}
Y
{{#invoke:Text|isLatinRange|a}}
1
1
Y
{{#invoke:Text|isQuote|日}}
Y
{{#invoke:Text|isQuote|„}}
1
1
Y
{{#invoke:Text|sentenceTerminated|日}}
Y
{{#invoke:Text|sentenceTerminated|a.}}
1
1
Y
{{#invoke:Text|getPlain|a}}
a
a
Y
{{#invoke:Text|removeDiacritics|a}}
a
a
Y
{{#invoke:Text|ucfirstAll|a}}
A
A
Y
{{#invoke:Text|uprightNonlatin|a}}
a
a
testGetPlain
Text
Expected
Actual
Y
a and b
a and b
a and b
Y
a<!--comment-->b
ab
ab
Y
<!--comment-->hello, world<!--comment 2-->
hello, world
hello, world
Y
a <nowiki>b c</nowiki>
a b c
a b c
Y
'''a'''
a
a
Y
''b''
b
b
Y
'''a''' and ''b''
a and b
a and b
Y
a and b
a and b
a and b
Y
'''a'' and '''b''
a and b
a and b
Y
a<!--I am an unclosed comment
a
a
Y
'''unclosed bold
unclosed bold
unclosed bold
Y
<!-- hello -- -->'''a''' <!--world-->''<nowiki>b</nowiki>
a b
a b
Y
<b>a</b> '''b'''<!-- hello -- world -->, <div style='font-size:100%;'>c</div>
a b, c
a b, c
testIsLatin
Text
Expected
Actual
Y
true
true
Y
abcd
true
true
Y
Ça ira
true
true
Y
α – Ω
false
false
Y
a日本d
false
false
testIsQuote
Text
Expected
Actual
Y
false
false
Y
"
true
true
Y
日
false
false
Y
abc"
false
false
testListToText
Text
Expected
Actual
Y
Y
{}
Y
A
A
A
Y
{"A"}
A
A
Y
{"A","B","C"}
A, B and C
A, B and C
Y
{"1","2","3"},"%.2f"
1.00, 2.00 and 3.00
1.00, 2.00 and 3.00
Y
{{#invoke:Text|listToText|1|2|3|format=%.2f}}
1.00, 2.00 and 3.00
1.00, 2.00 and 3.00
testQuote
Text
Expected
Actual
Y
“”
“”
Y
abcd
“abcd”
“abcd”
Y
"abcd"
“"abcd"”
“"abcd"”
Y
fr
« abcd »
« abcd »
Y
fr2
‹ abcd ›
‹ abcd ›
testQuoteUnquoted
Text
Expected
Actual
Y
Y
abcd
“abcd”
“abcd”
Y
"abcd"
"abcd"
"abcd"
Y
fr
« abcd »
« abcd »
Y
fr2
‹ abcd ›
‹ abcd ›
testRemoveDelimited
Text
Expected
Actual
Y
comment
ab
ab
Y
2 comments
hello, world
hello, world
Y
ref
in foo.
in foo.
testRemoveDiacritics
Text
Expected
Actual
Y
Y
abcd
abcd
abcd
Y
âbçdé
abcde
abcde
Y
a日本d
a日本d
a日本d
testSentenceTerminated
Text
Expected
Actual
Y
Hello
false
false
Y
(Hello)
false
false
Y
Hello.
true
true
Y
„Deutsche“
false
false
Y
„Deutsche?“
true
true
Y
"English?"
true
true
Y
[[Hello!]]
true
true
testSplitSandbox
Text
Expected
Actual
Y
"?a?b?c?d?e?f?", "c"
{"?a?b?","?d?e?f?"}
{"?a?b?","?d?e?f?"}
Y
"?a?b?c?d?e?f?", "?"
{"","a","b","c","d","e","f",""}
{"","a","b","c","d","e","f",""}
Y
"?a?b?c?d?e?f?", ""
{"?","a","?","b","?","c","?","d","?","e","?","f","?"}
{"?","a","?","b","?","c","?","d","?","e","?","f","?"}
Y
"?a?b?c?d?e?f?", "z"
{"?a?b?c?d?e?f?"}
{"?a?b?c?d?e?f?"}
Y
"?a?b?c?d?e?f?", "[bdf]"
{"?a?","?c?","?e?","?"}
{"?a?","?c?","?e?","?"}
Y
"?a?b?c?d?e?f?", "[bdf]", true
{"?a?b?c?d?e?f?"}
{"?a?b?c?d?e?f?"}
Y
{{#invoke:Text/sandbox|split|?a?b?c?|c}}
?a?b?
?a?b?
Y
{{#invoke:Text/sandbox|split|?a?b?c?|?}}
Y
{{#invoke:Text/sandbox|split|?a?b?c?|?|false|2}}
a
a
Y
{{#invoke:Text/sandbox|split|?a?b?c?|?|false|-2}}
c
c
Y
{{#invoke:Text/sandbox|split|?a?b?c?||false|2}}
a
a
Y
{{#invoke:Text/sandbox|split|?a?b?c?|z}}
?a?b?c?
?a?b?c?
Y
{{#invoke:Text/sandbox|split|?a?b?c?|[bc]}}
?a?
?a?
Y
{{#invoke:Text/sandbox|split|?a?b?c?|[bc]|true}}
?a?b?c?
?a?b?c?
testUCFirstAll
Text
Expected
Actual
Y
Y
25
25
25
Y
Help test me
Help Test Me
Help Test Me
Y
an der Schönen
An Der Schönen
An Der Schönen
Y
an der Schönen &lauen
An Der Schönen &Lauen
An Der Schönen &Lauen
Y
HTML ndash
An Der Schönen &Lauen Donau – X Y Z
An Der Schönen &Lauen Donau – X Y Z
Y
HTML nbsp
A B
A B
Y
many HTML
&<>
&<>
testUprightNonLatin
Text
Expected
Actual
Y
abc
abc
abc
Y
abc
abc
abc
Y
Mutsṭafah
Mutsṭafah
Mutsṭafah
Y
μm
μm
μm
Y
1 α-particle
1 α-particle
1 α-particle
Y
Method 3α
Method 3α
Method 3α
Y
ΣΨΩ
ΣΨΩ
ΣΨΩ
Y
abcΣΨΩxyz
abcΣΨΩ xyz
abcΣΨΩ xyz
Y
abЩyz
abЩ yz
abЩ yz
Y
Войната 1915 година. Втора Македония
Войната 1915 година. Втора Македония
Войната 1915 година. Втора Македония
Y
a日本d
a日本 d
a日本 d