From Wikipedia, the free encyclopedia
All 250 tests passed.
testChar
testChar
Test 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} }
testCharSandbox
testCharSandbox
Test 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/sandbox| char| 65 104 97} }
Aha
Aha
Y
{ { #invoke:Text/sandbox| char| 98 108 97| *= 2} }
blabla
blabla
Y
{ { #invoke:Text/sandbox| char| something| errors= 0} }
testConcatParams
testConcatParams
Test 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
testConcatParamsSandbox
testConcatParamsSandbox
Test 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/sandbox| concatParams| 1| 2| 3| separator= :| format= %.2f} }
1.00:2.00:3.00
1.00:2.00:3.00
testListToText
testListToText
Test 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
testListToTextSandbox
testListToTextSandbox
Test 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/sandbox| listToText| 1| 2| 3| format= %.2f} }
1.00, 2.00 and 3.00
1.00, 2.00 and 3.00
testContainsCJK
testContainsCJK
Test 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
testContainsCJKSandbox
testContainsCJKSandbox
Test 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
testGetPlain
testGetPlain
Test 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
testGetPlainSandbox
testGetPlainSandbox
Test 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
testRemoveDelimited
testRemoveDelimited
Test Expected Actual
Y
comment
ab
ab
Y
2 comments
hello, world
hello, world
Y
ref
in foo.
in foo.
testRemoveDelimitedSandbox
testRemoveDelimitedSandbox
Test Expected Actual
Y
comment
ab
ab
Y
2 comments
hello, world
hello, world
Y
ref
in foo.
in foo.
testIsLatin
testIsLatin
Test Expected Actual
Y
true
true
Y
abcd
true
true
Y
Ça ira
true
true
Y
α – Ω
false
false
Y
a日本d
false
false
testIsLatinSandbox
testIsLatinSandbox
Test Expected Actual
Y
true
true
Y
abcd
true
true
Y
Ça ira
true
true
Y
α – Ω
false
false
Y
a日本d
false
false
testIsQuote
testIsQuote
Test Expected Actual
Y
false
false
Y
"
true
true
Y
日
false
false
Y
abc"
false
false
testIsQuoteSandbox
testIsQuoteSandbox
Test Expected Actual
Y
false
false
Y
"
true
true
Y
日
false
false
Y
abc"
false
false
testQuote
testQuote
Test Expected Actual
Y
“”
“”
Y
abcd
“abcd”
“abcd”
Y
"abcd"
“"abcd"”
“"abcd"”
Y
fr
« abcd »
« abcd »
Y
fr2
‹ abcd ›
‹ abcd ›
testQuoteSandbox
testQuoteSandbox
Test Expected Actual
Y
“”
“”
Y
abcd
“abcd”
“abcd”
Y
"abcd"
“"abcd"”
“"abcd"”
Y
fr
« abcd »
« abcd »
Y
fr2
‹ abcd ›
‹ abcd ›
testQuoteUnquoted
testQuoteUnquoted
Test Expected Actual
Y
Y
abcd
“abcd”
“abcd”
Y
"abcd"
"abcd"
"abcd"
Y
fr
« abcd »
« abcd »
Y
fr2
‹ abcd ›
‹ abcd ›
testQuoteUnquotedSandbox
testQuoteUnquotedSandbox
Test Expected Actual
Y
Y
abcd
“abcd”
“abcd”
Y
"abcd"
"abcd"
"abcd"
Y
fr
« abcd »
« abcd »
Y
fr2
‹ abcd ›
‹ abcd ›
testRemoveDiacritics
testRemoveDiacritics
Test Expected Actual
Y
Y
abcd
abcd
abcd
Y
âbçdé
abcde
abcde
Y
a日本d
a日本d
a日本d
testRemoveDiacriticsSandbox
testRemoveDiacriticsSandbox
Test Expected Actual
Y
Y
abcd
abcd
abcd
Y
âbçdé
abcde
abcde
Y
a日本d
a日本d
a日本d
testSentenceTerminated
testSentenceTerminated
Test 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
testSentenceTerminatedSandbox
testSentenceTerminatedSandbox
Test 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
testUCFirstAll
testUCFirstAll
Test 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
& < >
& < >
testUCFirstAllSandbox
testUCFirstAllSandbox
Test 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
testUprightNonLatin
Test Expected Actual
Y
abc
abc
abc
Y
abc
abc
abc
Y
Musṭafah
Musṭafah
Musṭafah
Y
μm
μm
μm
Y
1 α-particle
1 α-particle
1 α-particle
Y
Method 3α
Method 3α
Method 3α
Y
ΣΨΩ
< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span>
< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span>
Y
abcΣΨΩxyz
abc< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span> xyz
abc< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span> xyz
Y
abЩyz
ab< span dir= ' auto' style= ' font-style:normal' > Щ< /span> yz
ab< span dir= ' auto' style= ' font-style:normal' > Щ< /span> yz
Y
Войната 1915 година. Втора Македония
< span dir= ' auto' style= ' font-style:normal' > Войната 1915 година. Втора Македония< /span>
< span dir= ' auto' style= ' font-style:normal' > Войната 1915 година. Втора Македония< /span>
Y
a日本d
a< span dir= ' auto' style= ' font-style:normal' > 日本< /span> d
a< span dir= ' auto' style= ' font-style:normal' > 日本< /span> d
testUprightNonLatinSandbox
testUprightNonLatinSandbox
Test Expected Actual
Y
abc
abc
abc
Y
abc
abc
abc
Y
Musṭafah
Musṭafah
Musṭafah
Y
μm
μm
μm
Y
1 α-particle
1 α-particle
1 α-particle
Y
Method 3α
Method 3α
Method 3α
Y
ΣΨΩ
< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span>
< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span>
Y
abcΣΨΩxyz
abc< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span> xyz
abc< span dir= ' auto' style= ' font-style:normal' > ΣΨΩ< /span> xyz
Y
abЩyz
ab< span dir= ' auto' style= ' font-style:normal' > Щ< /span> yz
ab< span dir= ' auto' style= ' font-style:normal' > Щ< /span> yz
Y
Войната 1915 година. Втора Македония
< span dir= ' auto' style= ' font-style:normal' > Войната 1915 година. Втора Македония< /span>
< span dir= ' auto' style= ' font-style:normal' > Войната 1915 година. Втора Македония< /span>
Y
a日本d
a< span dir= ' auto' style= ' font-style:normal' > 日本< /span> d
a< span dir= ' auto' style= ' font-style:normal' > 日本< /span> d
testExport
testExport
Test 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
testExportSandbox
testExportSandbox
Test Expected Actual
Y
{ { #invoke:Text/sandbox| containsCJK| a} }
Y
{ { #invoke:Text/sandbox| containsCJK| 日} }
1
1
Y
{ { #invoke:Text/sandbox| isLatinRange| 日} }
Y
{ { #invoke:Text/sandbox| isLatinRange| a} }
1
1
Y
{ { #invoke:Text/sandbox| isQuote| 日} }
Y
{ { #invoke:Text/sandbox| isQuote| „} }
1
1
Y
{ { #invoke:Text/sandbox| sentenceTerminated| 日} }
Y
{ { #invoke:Text/sandbox| sentenceTerminated| a.} }
1
1
Y
{ { #invoke:Text/sandbox| getPlain| a} }
a
a
Y
{ { #invoke:Text/sandbox| removeDiacritics| a} }
a
a
Y
{ { #invoke:Text/sandbox| ucfirstAll| a} }
A
A
Y
{ { #invoke:Text/sandbox| uprightNonlatin| a} }
a
a
testSplit
testSplit
Test 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| split| ?a?b?c?| c} }
?a?b?
?a?b?
Y
{ { #invoke:Text| split| ?a?b?c?| ?} }
Y
{ { #invoke:Text| split| ?a?b?c?| ?| false| 2} }
a
a
Y
{ { #invoke:Text| split| ?a?b?c?| ?| false| -2} }
c
c
Y
{ { #invoke:Text| split| ?a?b?c?| | false| 2} }
a
a
Y
{ { #invoke:Text| split| ?a?b?c?| z} }
?a?b?c?
?a?b?c?
Y
{ { #invoke:Text| split| ?a?b?c?| [ bc] } }
?a?
?a?
Y
{ { #invoke:Text| split| ?a?b?c?| [ bc] | true} }
?a?b?c?
?a?b?c?
testSplitSandbox
testSplitSandbox
Test 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?
testZip
testZip
Test Expected Actual
Y
{ { #invoke:Text| zip| a,b,c| 1,2,3| sep= ,| isep= -| osep= /} }
a-1/b-2/c-3
a-1/b-2/c-3
Y
{ { #invoke:Text| zip| a b c| x y z| 1 2 3| sep= %s+| isep= -| osep= /} }
a-x-1/b-y-2/c-z-3
a-x-1/b-y-2/c-z-3
testZipSandbox
testZipSandbox
Test Expected Actual
Y
{ { #invoke:Text/sandbox| zip| a,b,c| 1,2,3| sep= ,| isep= -| osep= /} }
a-1/b-2/c-3
a-1/b-2/c-3
Y
{ { #invoke:Text/sandbox| zip| a b c| x y z| 1 2 3| sep= %s+| isep= -| osep= /} }
a-x-1/b-y-2/c-z-3
a-x-1/b-y-2/c-z-3