Module talk:Wikitext Parsing/testcases
All 16 tests passed.
test_live
| Test | Expected | Actual | Differs at | |
|---|---|---|---|---|
| Live PrepareText Escape Test 1 | B<!-- Hey!-->A | B<!-- Hey!-->A | ||
| Live PrepareText Preprocess Test 1 | BA | BA | ||
| Live PrepareText Escape Test 2 | {{Text|A<nowiki |}}>|B}} | {{Text|A<nowiki |}}>|B}} | ||
| Live PrepareText Preprocess Test 2 | A<nowiki |}}>B | A<nowiki |}}>B | ||
| Live PrepareText Escape Test 3 | Hey!{{Text|<nowiki | ||> Hey! }}
A</nowiki>|<!--AAAAA|AAA-->Should see|Shouldn't see}} |
Hey!{{Text|<nowiki | ||> Hey! }}
A</nowiki>|<!--AAAAA|AAA-->Should see|Shouldn't see}} |
||
| Live PrepareText Preprocess Test 3 | Hey!
Hey! }} AShould see |
Hey!
Hey! }} AShould see |
||
| Live PrepareText Escape Test 4 | {{User:Aidan9382/templates/dummy
|A|B|C {{{A|B}}} { } } { |<nowiki>D</nowiki> |<pre>E |F</pre> |G|=|a=|A = [[{{PAGENAME}}|A=B]]{{Text|1==<nowiki>}}</nowiki>}}|A B=Success}} |
{{User:Aidan9382/templates/dummy
|A|B|C {{{A|B}}} { } } { |<nowiki>D</nowiki> |<pre>E |F</pre> |G|=|a=|A = [[{{PAGENAME}}|A=B]]{{Text|1==<nowiki>}}</nowiki>}}|A B=Success}} |
||
| Live PrepareText Preprocess Test 4 | 0: {{{0}}}
1: A 2: B 3: C B { } } { 4: D 5: 6: G 7: {{{7}}} 8: {{{8}}} 9: {{{9}}} A: [[Wikitext Parsing/testcases|A=B]]=}} B: {{{B}}} C: {{{C}}} D: {{{D}}} E: {{{E}}} F: {{{F}}} Nothing: <: {{{<}}} >: {{{>}}} &: {{{&}}} Spaced: Success |
0: {{{0}}}
1: A 2: B 3: C B { } } { 4: D 5: 6: G 7: {{{7}}} 8: {{{8}}} 9: {{{9}}} A: [[Wikitext Parsing/testcases|A=B]]=}} B: {{{B}}} C: {{{C}}} D: {{{D}}} E: {{{E}}} F: {{{F}}} Nothing: <: {{{<}}} >: {{{>}}} &: {{{&}}} Spaced: Success |
test_sandbox
| Test | Expected | Actual | Differs at | |
|---|---|---|---|---|
| Sandbox PrepareText Escape Test 1 | B<!-- Hey!-->A | B<!-- Hey!-->A | ||
| Sandbox PrepareText Preprocess Test 1 | BA | BA | ||
| Sandbox PrepareText Escape Test 2 | {{Text|A<nowiki |}}>|B}} | {{Text|A<nowiki |}}>|B}} | ||
| Sandbox PrepareText Preprocess Test 2 | A<nowiki |}}>B | A<nowiki |}}>B | ||
| Sandbox PrepareText Escape Test 3 | Hey!{{Text|<nowiki | ||> Hey! }}
A</nowiki>|<!--AAAAA|AAA-->Should see|Shouldn't see}} |
Hey!{{Text|<nowiki | ||> Hey! }}
A</nowiki>|<!--AAAAA|AAA-->Should see|Shouldn't see}} |
||
| Sandbox PrepareText Preprocess Test 3 | Hey!
Hey! }} AShould see |
Hey!
Hey! }} AShould see |
||
| Sandbox PrepareText Escape Test 4 | {{User:Aidan9382/templates/dummy
|A|B|C {{{A|B}}} { } } { |<nowiki>D</nowiki> |<pre>E |F</pre> |G|=|a=|A = [[{{PAGENAME}}|A=B]]{{Text|1==<nowiki>}}</nowiki>}}|A B=Success}} |
{{User:Aidan9382/templates/dummy
|A|B|C {{{A|B}}} { } } { |<nowiki>D</nowiki> |<pre>E |F</pre> |G|=|a=|A = [[{{PAGENAME}}|A=B]]{{Text|1==<nowiki>}}</nowiki>}}|A B=Success}} |
||
| Sandbox PrepareText Preprocess Test 4 | 0: {{{0}}}
1: A 2: B 3: C B { } } { 4: D 5: 6: G 7: {{{7}}} 8: {{{8}}} 9: {{{9}}} A: [[Wikitext Parsing/testcases|A=B]]=}} B: {{{B}}} C: {{{C}}} D: {{{D}}} E: {{{E}}} F: {{{F}}} Nothing: <: {{{<}}} >: {{{>}}} &: {{{&}}} Spaced: Success |
0: {{{0}}}
1: A 2: B 3: C B { } } { 4: D 5: 6: G 7: {{{7}}} 8: {{{8}}} 9: {{{9}}} A: [[Wikitext Parsing/testcases|A=B]]=}} B: {{{B}}} C: {{{C}}} D: {{{D}}} E: {{{E}}} F: {{{F}}} Nothing: <: {{{<}}} >: {{{>}}} &: {{{&}}} Spaced: Success |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.