Jump to content
Wikipedia The Free Encyclopedia

Module talk:Text/testcases

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

All 250 tests passed.

testChar

testChar
TestExpectedActual
[画像:check]Y
[画像:check]Y {65,104,97} Aha Aha
[画像:check]Y {"65",104,97} Aha Aha
[画像:check]Y {98,108,97},2 blabla blabla
[画像:check]Y {"something"} error error
[画像:check]Y "something",1,true
[画像:check]Y {7,8,9} error error
[画像:check]Y {{#invoke:Text|char|65 104 97}} Aha Aha
[画像:check]Y {{#invoke:Text|char|98 108 97|*=2}} blabla blabla
[画像:check]Y {{#invoke:Text|char|something|errors=0}}

testCharSandbox

testCharSandbox
TestExpectedActual
[画像:check]Y
[画像:check]Y {65,104,97} Aha Aha
[画像:check]Y {"65",104,97} Aha Aha
[画像:check]Y {98,108,97},2 blabla blabla
[画像:check]Y {"something"} error error
[画像:check]Y "something",1,true
[画像:check]Y {7,8,9} error error
[画像:check]Y {{#invoke:Text/sandbox|char|65 104 97}} Aha Aha
[画像:check]Y {{#invoke:Text/sandbox|char|98 108 97|*=2}} blabla blabla
[画像:check]Y {{#invoke:Text/sandbox|char|something|errors=0}}

testConcatParams

testConcatParams
TestExpectedActual
[画像:check]Y
[画像:check]Y {}
[画像:check]Y A A A
[画像:check]Y {"A"} A A
[画像:check]Y {"A","B","C"} A|B|C A|B|C
[画像:check]Y {"A","B","C"},"-" A-B-C A-B-C
[画像:check]Y {"1","2","3"},nil,"%.2f" 1.00|2.00|3.00 1.00|2.00|3.00
[画像:check]Y {{#invoke:Text|concatParams|1|2|3|separator=:|format=%.2f}} 1.00:2.00:3.00 1.00:2.00:3.00

testConcatParamsSandbox

testConcatParamsSandbox
TestExpectedActual
[画像:check]Y
[画像:check]Y {}
[画像:check]Y A A A
[画像:check]Y {"A"} A A
[画像:check]Y {"A","B","C"} A|B|C A|B|C
[画像:check]Y {"A","B","C"},"-" A-B-C A-B-C
[画像:check]Y {"1","2","3"},nil,"%.2f" 1.00|2.00|3.00 1.00|2.00|3.00
[画像:check]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
TestExpectedActual
[画像:check]Y
[画像:check]Y {}
[画像:check]Y A A A
[画像:check]Y {"A"} A A
[画像:check]Y {"A","B","C"} A, B and C A, B and C
[画像:check]Y {"1","2","3"},"%.2f" 1.00, 2.00 and 3.00 1.00, 2.00 and 3.00
[画像:check]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
TestExpectedActual
[画像:check]Y
[画像:check]Y {}
[画像:check]Y A A A
[画像:check]Y {"A"} A A
[画像:check]Y {"A","B","C"} A, B and C A, B and C
[画像:check]Y {"1","2","3"},"%.2f" 1.00, 2.00 and 3.00 1.00, 2.00 and 3.00
[画像:check]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
TestExpectedActual
[画像:check]Y false false
[画像:check]Y Draco Dormiens Nunquam Titillandus false false
[画像:check]Y Никогда не щекочи спящего дракона false false
[画像:check]Y सोए शेर को न जगाओ false false
[画像:check]Y 永远不要惊醒卧龙 true true
[画像:check]Y 眠っているドラゴンをくすぐることはありません true true
[画像:check]Y 잠자는 용을 간지럽히지 마십시오 true true

testContainsCJKSandbox

testContainsCJKSandbox
TestExpectedActual
[画像:check]Y false false
[画像:check]Y Draco Dormiens Nunquam Titillandus false false
[画像:check]Y Никогда не щекочи спящего дракона false false
[画像:check]Y सोए शेर को न जगाओ false false
[画像:check]Y 永远不要惊醒卧龙 true true
[画像:check]Y 眠っているドラゴンをくすぐることはありません true true
[画像:check]Y 잠자는 용을 간지럽히지 마십시오 true true

testGetPlain

testGetPlain
TestExpectedActual
[画像:check]Y a and b a and b a and b
[画像:check]Y a<!--comment-->b ab ab
[画像:check]Y <!--comment-->hello, world<!--comment 2--> hello, world hello, world
[画像:check]Y a <nowiki>b c</nowiki> a b c a b c
[画像:check]Y '''a''' a a
[画像:check]Y ''b'' b b
[画像:check]Y '''a''' and ''b'' a and b a and b
[画像:check]Y a and b a and b a and b
[画像:check]Y '''a'' and '''b'' a and b a and b
[画像:check]Y a<!--I am an unclosed comment a a
[画像:check]Y '''unclosed bold unclosed bold unclosed bold
[画像:check]Y <!-- hello -- -->'''a''' <!--world-->''<nowiki>b</nowiki> a b a b
[画像:check]Y <b>a</b> '''b'''<!-- hello -- world -->, <div style='font-size:100%;'>c</div> a b, c a b, c

testGetPlainSandbox

testGetPlainSandbox
TestExpectedActual
[画像:check]Y a and b a and b a and b
[画像:check]Y a<!--comment-->b ab ab
[画像:check]Y <!--comment-->hello, world<!--comment 2--> hello, world hello, world
[画像:check]Y a <nowiki>b c</nowiki> a b c a b c
[画像:check]Y '''a''' a a
[画像:check]Y ''b'' b b
[画像:check]Y '''a''' and ''b'' a and b a and b
[画像:check]Y a and b a and b a and b
[画像:check]Y '''a'' and '''b'' a and b a and b
[画像:check]Y a<!--I am an unclosed comment a a
[画像:check]Y '''unclosed bold unclosed bold unclosed bold
[画像:check]Y <!-- hello -- -->'''a''' <!--world-->''<nowiki>b</nowiki> a b a b
[画像:check]Y <b>a</b> '''b'''<!-- hello -- world -->, <div style='font-size:100%;'>c</div> a b, c a b, c

testRemoveDelimited

testRemoveDelimited
TestExpectedActual
[画像:check]Y comment ab ab
[画像:check]Y 2 comments hello, world hello, world
[画像:check]Y ref in foo. in foo.

testRemoveDelimitedSandbox

testRemoveDelimitedSandbox
TestExpectedActual
[画像:check]Y comment ab ab
[画像:check]Y 2 comments hello, world hello, world
[画像:check]Y ref in foo. in foo.

testIsLatin

testIsLatin
TestExpectedActual
[画像:check]Y true true
[画像:check]Y abcd true true
[画像:check]Y Ça ira true true
[画像:check]Y α – Ω false false
[画像:check]Y a日本d false false

testIsLatinSandbox

testIsLatinSandbox
TestExpectedActual
[画像:check]Y true true
[画像:check]Y abcd true true
[画像:check]Y Ça ira true true
[画像:check]Y α – Ω false false
[画像:check]Y a日本d false false

testIsQuote

testIsQuote
TestExpectedActual
[画像:check]Y false false
[画像:check]Y " true true
[画像:check]Y false false
[画像:check]Y abc" false false

testIsQuoteSandbox

testIsQuoteSandbox
TestExpectedActual
[画像:check]Y false false
[画像:check]Y " true true
[画像:check]Y false false
[画像:check]Y abc" false false

testQuote

testQuote
TestExpectedActual
[画像:check]Y "" ""
[画像:check]Y abcd "abcd" "abcd"
[画像:check]Y "abcd" ""abcd"" ""abcd""
[画像:check]Y fr «abcd» «abcd»
[画像:check]Y fr2 ‹abcd› ‹abcd›

testQuoteSandbox

testQuoteSandbox
TestExpectedActual
[画像:check]Y "" ""
[画像:check]Y abcd "abcd" "abcd"
[画像:check]Y "abcd" ""abcd"" ""abcd""
[画像:check]Y fr «abcd» «abcd»
[画像:check]Y fr2 ‹abcd› ‹abcd›

testQuoteUnquoted

testQuoteUnquoted
TestExpectedActual
[画像:check]Y
[画像:check]Y abcd "abcd" "abcd"
[画像:check]Y "abcd" "abcd" "abcd"
[画像:check]Y fr «abcd» «abcd»
[画像:check]Y fr2 ‹abcd› ‹abcd›

testQuoteUnquotedSandbox

testQuoteUnquotedSandbox
TestExpectedActual
[画像:check]Y
[画像:check]Y abcd "abcd" "abcd"
[画像:check]Y "abcd" "abcd" "abcd"
[画像:check]Y fr «abcd» «abcd»
[画像:check]Y fr2 ‹abcd› ‹abcd›

testRemoveDiacritics

testRemoveDiacritics
TestExpectedActual
[画像:check]Y
[画像:check]Y abcd abcd abcd
[画像:check]Y âbçdé abcde abcde
[画像:check]Y a日本d a日本d a日本d

testRemoveDiacriticsSandbox

testRemoveDiacriticsSandbox
TestExpectedActual
[画像:check]Y
[画像:check]Y abcd abcd abcd
[画像:check]Y âbçdé abcde abcde
[画像:check]Y a日本d a日本d a日本d

testSentenceTerminated

testSentenceTerminated
TestExpectedActual
[画像:check]Y Hello false false
[画像:check]Y (Hello) false false
[画像:check]Y Hello. true true
[画像:check]Y „Deutsche" false false
[画像:check]Y „Deutsche?" true true
[画像:check]Y "English?" true true
[画像:check]Y [[Hello!]] true true

testSentenceTerminatedSandbox

testSentenceTerminatedSandbox
TestExpectedActual
[画像:check]Y Hello false false
[画像:check]Y (Hello) false false
[画像:check]Y Hello. true true
[画像:check]Y „Deutsche" false false
[画像:check]Y „Deutsche?" true true
[画像:check]Y "English?" true true
[画像:check]Y [[Hello!]] true true

testUCFirstAll

testUCFirstAll
TestExpectedActual
[画像:check]Y
[画像:check]Y 25 25 25
[画像:check]Y Help test me Help Test Me Help Test Me
[画像:check]Y an der Schönen An Der Schönen An Der Schönen
[画像:check]Y an der Schönen &lauen An Der Schönen &Lauen An Der Schönen &Lauen
[画像:check]Y HTML ndash An Der Schönen &Lauen Donau – X Y Z An Der Schönen &Lauen Donau – X Y Z
[画像:check]Y HTML nbsp AB AB
[画像:check]Y many HTML &<> ‌‍‎‏ &<> ‌‍‎‏

testUCFirstAllSandbox

testUCFirstAllSandbox
TestExpectedActual
[画像:check]Y
[画像:check]Y 25 25 25
[画像:check]Y Help test me Help Test Me Help Test Me
[画像:check]Y an der Schönen An Der Schönen An Der Schönen
[画像:check]Y an der Schönen &lauen An Der Schönen &Lauen An Der Schönen &Lauen
[画像:check]Y HTML ndash An Der Schönen &Lauen Donau – X Y Z An Der Schönen &Lauen Donau – X Y Z
[画像:check]Y HTML nbsp AB AB
[画像:check]Y many HTML &<> ‌‍‎‏ &<> ‌‍‎‏

testUprightNonLatin

testUprightNonLatin
TestExpectedActual
[画像:check]Y abc abc abc
[画像:check]Y abc abc abc
[画像:check]Y Musṭafah Musṭafah Musṭafah
[画像:check]Y μm μm μm
[画像:check]Y 1 α-particle 1 α-particle 1 α-particle
[画像:check]Y Method 3α Method 3α Method 3α
[画像:check]Y ΣΨΩ <span dir='auto' style='font-style:normal'>ΣΨΩ</span> <span dir='auto' style='font-style:normal'>ΣΨΩ</span>
[画像:check]Y abcΣΨΩxyz abc<span dir='auto' style='font-style:normal'>ΣΨΩ</span>xyz abc<span dir='auto' style='font-style:normal'>ΣΨΩ</span>xyz
[画像:check]Y abЩyz ab<span dir='auto' style='font-style:normal'>Щ</span>yz ab<span dir='auto' style='font-style:normal'>Щ</span>yz
[画像:check]Y Войната 1915 година. Втора Македония <span dir='auto' style='font-style:normal'>Войната 1915 година. Втора Македония</span> <span dir='auto' style='font-style:normal'>Войната 1915 година. Втора Македония</span>
[画像:check]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
TestExpectedActual
[画像:check]Y abc abc abc
[画像:check]Y abc abc abc
[画像:check]Y Musṭafah Musṭafah Musṭafah
[画像:check]Y μm μm μm
[画像:check]Y 1 α-particle 1 α-particle 1 α-particle
[画像:check]Y Method 3α Method 3α Method 3α
[画像:check]Y ΣΨΩ <span dir='auto' style='font-style:normal'>ΣΨΩ</span> <span dir='auto' style='font-style:normal'>ΣΨΩ</span>
[画像:check]Y abcΣΨΩxyz abc<span dir='auto' style='font-style:normal'>ΣΨΩ</span>xyz abc<span dir='auto' style='font-style:normal'>ΣΨΩ</span>xyz
[画像:check]Y abЩyz ab<span dir='auto' style='font-style:normal'>Щ</span>yz ab<span dir='auto' style='font-style:normal'>Щ</span>yz
[画像:check]Y Войната 1915 година. Втора Македония <span dir='auto' style='font-style:normal'>Войната 1915 година. Втора Македония</span> <span dir='auto' style='font-style:normal'>Войната 1915 година. Втора Македония</span>
[画像:check]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
TestExpectedActual
[画像:check]Y {{#invoke:Text|containsCJK|a}}
[画像:check]Y {{#invoke:Text|containsCJK|}} 1 1
[画像:check]Y {{#invoke:Text|isLatinRange|}}
[画像:check]Y {{#invoke:Text|isLatinRange|a}} 1 1
[画像:check]Y {{#invoke:Text|isQuote|}}
[画像:check]Y {{#invoke:Text|isQuote|}} 1 1
[画像:check]Y {{#invoke:Text|sentenceTerminated|}}
[画像:check]Y {{#invoke:Text|sentenceTerminated|a.}} 1 1
[画像:check]Y {{#invoke:Text|getPlain|a}} a a
[画像:check]Y {{#invoke:Text|removeDiacritics|a}} a a
[画像:check]Y {{#invoke:Text|ucfirstAll|a}} A A
[画像:check]Y {{#invoke:Text|uprightNonlatin|a}} a a

testExportSandbox

testExportSandbox
TestExpectedActual
[画像:check]Y {{#invoke:Text/sandbox|containsCJK|a}}
[画像:check]Y {{#invoke:Text/sandbox|containsCJK|}} 1 1
[画像:check]Y {{#invoke:Text/sandbox|isLatinRange|}}
[画像:check]Y {{#invoke:Text/sandbox|isLatinRange|a}} 1 1
[画像:check]Y {{#invoke:Text/sandbox|isQuote|}}
[画像:check]Y {{#invoke:Text/sandbox|isQuote|}} 1 1
[画像:check]Y {{#invoke:Text/sandbox|sentenceTerminated|}}
[画像:check]Y {{#invoke:Text/sandbox|sentenceTerminated|a.}} 1 1
[画像:check]Y {{#invoke:Text/sandbox|getPlain|a}} a a
[画像:check]Y {{#invoke:Text/sandbox|removeDiacritics|a}} a a
[画像:check]Y {{#invoke:Text/sandbox|ucfirstAll|a}} A A
[画像:check]Y {{#invoke:Text/sandbox|uprightNonlatin|a}} a a

testSplit

testSplit
TestExpectedActual
[画像:check]Y "?a?b?c?d?e?f?", "c" {"?a?b?","?d?e?f?"} {"?a?b?","?d?e?f?"}
[画像:check]Y "?a?b?c?d?e?f?", "?" {"","a","b","c","d","e","f",""} {"","a","b","c","d","e","f",""}
[画像:check]Y "?a?b?c?d?e?f?", "" {"?","a","?","b","?","c","?","d","?","e","?","f","?"} {"?","a","?","b","?","c","?","d","?","e","?","f","?"}
[画像:check]Y "?a?b?c?d?e?f?", "z" {"?a?b?c?d?e?f?"} {"?a?b?c?d?e?f?"}
[画像:check]Y "?a?b?c?d?e?f?", "[bdf]" {"?a?","?c?","?e?","?"} {"?a?","?c?","?e?","?"}
[画像:check]Y "?a?b?c?d?e?f?", "[bdf]", true {"?a?b?c?d?e?f?"} {"?a?b?c?d?e?f?"}
[画像:check]Y {{#invoke:Text|split|?a?b?c?|c}} ?a?b? ?a?b?
[画像:check]Y {{#invoke:Text|split|?a?b?c?|?}}
[画像:check]Y {{#invoke:Text|split|?a?b?c?|?|false|2}} a a
[画像:check]Y {{#invoke:Text|split|?a?b?c?|?|false|-2}} c c
[画像:check]Y {{#invoke:Text|split|?a?b?c?||false|2}} a a
[画像:check]Y {{#invoke:Text|split|?a?b?c?|z}} ?a?b?c? ?a?b?c?
[画像:check]Y {{#invoke:Text|split|?a?b?c?|[bc]}} ?a? ?a?
[画像:check]Y {{#invoke:Text|split|?a?b?c?|[bc]|true}} ?a?b?c? ?a?b?c?

testSplitSandbox

testSplitSandbox
TestExpectedActual
[画像:check]Y "?a?b?c?d?e?f?", "c" {"?a?b?","?d?e?f?"} {"?a?b?","?d?e?f?"}
[画像:check]Y "?a?b?c?d?e?f?", "?" {"","a","b","c","d","e","f",""} {"","a","b","c","d","e","f",""}
[画像:check]Y "?a?b?c?d?e?f?", "" {"?","a","?","b","?","c","?","d","?","e","?","f","?"} {"?","a","?","b","?","c","?","d","?","e","?","f","?"}
[画像:check]Y "?a?b?c?d?e?f?", "z" {"?a?b?c?d?e?f?"} {"?a?b?c?d?e?f?"}
[画像:check]Y "?a?b?c?d?e?f?", "[bdf]" {"?a?","?c?","?e?","?"} {"?a?","?c?","?e?","?"}
[画像:check]Y "?a?b?c?d?e?f?", "[bdf]", true {"?a?b?c?d?e?f?"} {"?a?b?c?d?e?f?"}
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?|c}} ?a?b? ?a?b?
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?|?}}
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?|?|false|2}} a a
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?|?|false|-2}} c c
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?||false|2}} a a
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?|z}} ?a?b?c? ?a?b?c?
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?|[bc]}} ?a? ?a?
[画像:check]Y {{#invoke:Text/sandbox|split|?a?b?c?|[bc]|true}} ?a?b?c? ?a?b?c?

testZip

testZip
TestExpectedActual
[画像:check]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
[画像:check]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
TestExpectedActual
[画像:check]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
[画像:check]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

AltStyle によって変換されたページ (->オリジナル) /