Jump to content

Template:Str find word/testcases

From Wikipedia, the free encyclopedia

XPtest

[edit]
  • T ys:TRUEfeb
  • F ys:FALSE
  • T no:TRUEfeb
  • F no:FALSE
  • F nil:FALSE
  • T blk:TRUEfeb
  • T abst:TRUEfeb
  • T /DOC:TRUEfeb
  • T /TESTC:TRUEfeb

out

[edit]
  • out: TRUEfive
  • out: TRUEtwo, three
  • out: TRUEfive, three
  • out; in=inorder: TRUEthree, five, two, four
  • out in=desc: TRUEfive, three, four, two

logics

[edit]

syn

[edit]
  • T: TRUEtwo
  • F: FALSE

out edge

[edit]
  • out ws: TRUEfive, two
  • out ws Q: TRUEfive, two


  • out ws Q: TRUEfive", "Btwo
  • out ws Q: TRUEfive', 'Ztwo

quotes (agn)

[edit]
  • Qs: TRUEfive, two
  • Q, wa: TRUEtwo


  • basic/none: TRUEfive, two

sep (sep-in)

[edit]
  • IN-SEP1: TRUEfive;two
  • IN-SEP2: TRUEfive;xtwo
ERR
sep interferes with cQ12 code _.._ -- how so???
  • IN-SEP3>_;_A: TRUEfive_;_AQ0022
ERR
sep interferes with cQ12 code _.._
  • IN-SEP3>_;_A: TRUEa "two"


  • IN-SEP4:>A< FALSE
  • FALSE

out-sep

[edit]
  • OUT-SEP1: TRUEfive, two
  • OUT-SEP2: TRUEfive;two
  • OUT-SEP3: TRUEfive_,_Atwo
  • OUT-SEP4: TRUEfiveAtwo


  • OUT-SEP5: TRUEfive%;two


  • OUT-SEP 6 pipe: TRUEfive|two

blanks in

[edit]
  • has blanks: TRUEfive, two
  • has blanks: TRUEfive, two
  • has blanks: TRUEfive

Qs unbalanced, edge, in-word

[edit]
  • Q2: TRUEhi. 'three'
  • Q2: TRUEtwo
  • Q2-c: TRUEtwo
  • Q2: TRUEtwo
  • Q2: TRUEtwo
  • Q2Q2: TRUEtwo
  • Q2Q2: TRUEv,w
  • Q2Q2Q2: TRUEaaa, v,w
  • Q2Q2mots: FALSE
  • Q2Q2mmots: FALSE
  • Q2malf2: TRUEtwo
  • Q2inword3: TRUEtwo
  • Q2malf4: TRUEtwo
  • Q2malf5: TRUEtwo
  • Q2malf6: FALSE
ws, amp
  • Q2ws11: FALSE
  • Q2ws13: FALSE
  • Qamp16: TRUEthree
edge
  • Q2edge11: FALSE
  • Q2edge12: FALSE
  • Q2edge12: TRUEthree, two

order

[edit]
  • T: TRUEfive, two
  • T: TRUEfive, two
  • T: TRUEfive, two

basic

[edit]
  • T: TRUEfoo
  • F: FALSE
  • x: TRUEfoo, bar
  • x: TRUEfoo, bar
  • T: FALSE
  • F: FALSE

aka

[edit]
  • T: TRUEnovember
  • T: TRUEnovember


  • T: TRUEnovember


  • MAY: FALSE
  • E: FALSE


  • F: FALSE


sep

[edit]
  • T: TRUEapr,dec
  • T: TRUEapr;dec
  • T: TRUEapr/nov
  • T: TRUEapr/ /dec
  • T: TRUEapr

andwords

[edit]
andwords = combine 2 params
  • T: FALSE
  • F: FALSE
empty orw
  • T: FALSE
  • F: TRUEfoo

andwords, orwords

[edit]
  • x: FALSE
  • x: FALSE

comma

[edit]
escape comma?
  • T/off: TRUEhello, world
  • nowiki: FALSE
  • {{,}}: TRUEhello · world
  • %,: TRUEhello%, world

SEP

[edit]
  • SEP=" TRUEfoo
  • SEP=" TRUEfoo
  • SEP=" FALSE

more

[edit]
  • SEPout=-- FALSE
  • SEP=| TRUEbar|foo
  • SEP=; TRUEfoo
  • SEP= TRUEfoo
  • SEP= TRUEfoo
  • SEP= TRUEfoo
  • SEP=,, FALSE
  • SEP=,a9, FALSE


  • dflt T: FALSE
  • empt : FALSE
  • comma : FALSE

bool

[edit]
dflt=F:
  • dflt F: FALSE
  • empt F: FALSE
  • bla F: FALSE
  • F->F: FALSE
  • F->T: TRUEyes
  • T->T: TRUEtrue
  • T->F: FALSE
  • multi,T->T: TRUEtrue, true
  • multi,T->T: TRUEtrue, true

case

[edit]
  • T, F: FALSE
  • F, T: TRUEfoo

basic t/f/dflt settings

[edit]
(dflt=F)
  • abs,T: TRUEfoo
  • empt,T: TRUEfoo
  • bla,T: TRUEfoo
  • F,T: TRUEfoo
  • T,T: TRUEfoo

basic & default

[edit]
  • abs=dflt:T -> T: FALSE
  • blank:T -> T: FALSE

OR

[edit]

OR:order

[edit]
  • T: TRUEfive, two
  • T: TRUEfive, two
  • T: TRUEfive, two

OR:basic

[edit]
  • T: TRUEfoo
  • F: FALSE
  • x: TRUEfoo, bar
  • x: TRUEfoo, bar
  • T: FALSE
  • F: FALSE

OR:aka

[edit]
  • T: TRUEnovember
  • T: TRUEnovember


  • T: TRUEnovember


  • MAY: FALSE
  • E: FALSE
  • edge: FALSE
  • F: FALSE

OR:sep

[edit]
  • T: TRUEapr,dec
  • T: TRUEapr;dec
  • T: TRUEapr/nov
  • T: TRUEapr/ /dec
  • T: TRUEapr

OR:andwords

[edit]
andwords = combine 2 params
  • T: TRUEfoo, bar, 0
  • F: TRUEfoo, bar
empty orw
  • T: FALSE
  • F: TRUEfoo

OR:andwords, orwords

[edit]
  • x: FALSE
  • x: FALSE

OR:comma

[edit]
escape comma?
  • T/off: TRUEhello, world
  • nowiki: FALSE
  • {{,}}: TRUEhello · world
  • %,: TRUEhello%, world

OR:SEP

[edit]
  • SEP=" TRUEfoo
  • SEP=" TRUEfoo
  • SEP=" FALSE

OR:more

[edit]
  • SEPout=-- FALSE
  • SEP=| TRUEbar|foo
  • SEP=; TRUEfoo
  • SEP= TRUEfoo
  • SEP= TRUEfoo
  • SEP= TRUEfoo
  • SEP=,, FALSE
  • SEP=,a9, FALSE


  • dflt T: FALSE
  • empt : FALSE
  • comma : FALSE

OR:bool

[edit]
dflt=F:
  • dflt F: FALSE
  • empt F: FALSE
  • bla F: FALSE
  • F->F: FALSE
  • F->T: TRUEyes
  • T->T: TRUEtrue
  • T->F: FALSE
  • multi,T->T: TRUEtrue, true
  • multi,T->T: TRUEtrue, true

OR:case

[edit]
  • T, F: FALSE
  • F, T: TRUEfoo

OR:basic t/f/dflt settings

[edit]
(dflt=F)
  • abs,T: TRUEfoo
  • empt,T: TRUEfoo
  • bla,T: TRUEfoo
  • F,T: TRUEfoo
  • T,T: TRUEfoo

t/f arguments case, bool,

[edit]

omit=dflt

[edit]
  • basic-dflt: TRUEfoo


long param-name
  • basicT: FALSE
  • basicF: TRUEfoo

characters, words & whitespace

[edit]
  • T: FALSE
  • T: TRUE0(12)&^
  • newlines T: TRUEfoo, bar

yes, no options

[edit]
  • dflt-T: TRUEbar, foo
  • dflt-F: FALSE
  • Y/N-empty: TRUEbar, foo
  • Y/N-empty: FALSE
  • Y/N: TRUEbar, foo
  • Y/N: FALSE
  • Y/N: TRUEbar, foo
  • Y/N: FALSE

yes, no with image/table/lorem

[edit]
  • Y/N: TRUEbar, foo
  • Y/N: TRUEbar, foo
  • Y/N:

TRUEbar, foo

  • Y/N: FALSE
  • Y/N: FALSE
  • Y/N:

FALSE

case, bool options

[edit]

case

[edit]
  • case=T: FALSE
  • case=Y: FALSE
  • case=Y: TRUEBar, Foo, April
  • case=dflt: TRUEbar, foo
  • case=blabla: TRUEbar, foo

booleans

[edit]
  • bool=T: TRUEfalse
  • bool=Y: TRUEfalse
  • bool=dflt: FALSE
  • bool=F: FALSE
  • bool=abst: FALSE
  • bool=blabla: FALSE

explain true / testcases

[edit]
  • xp-f: TRUEbar
  • xp-f: TRUEbar
  • xp-t: TRUEbar
  • xp-t: TRUEbar
  • xp-t: TRUEbar
  • xp-t: TRUEalpha$, bar

by transclusion

[edit]
  • xp-f: TRUEbar
  • xp-f: TRUEbar
  • xp-t: TRUEbar
  • xp-t: TRUEbar
  • xp-t: TRUEbar
  • xp-t: FALSE

errors & warnings

[edit]
  • The logic does not (can not) produce errors. The result is always logically T or F.
both warnings in preview:
  • T: TRUEone, z
  • F: FALSE

unk parameter

[edit]
  • FALSE
  • FALSE
show report
  • FALSE
  • FALSE

xpMaxWordcountReached

[edit]
  • (prev warn) T: TRUEone, z
  • (prev warn) F: TRUEz
  • (prev warn) T: TRUEone, z
  • (prev warn) F: TRUEz