Template:ISO 4217/code/testcases


 * ·ISO 4217/code-none·ISO 4217/code-is-ambiguous·ISO 4217/code-to-withdrawal-date·ISO 4217/code-is-obsolete·ISO 4217/code-minor-unit·ISO 4217/code-to-number
 * -to be umbrella cat



code (base)

 * ISO 4217/code/format
 * ISO 4217/code/format


 * USD
 * A.
 * B.
 * C.
 * D.


 * XYZ
 * A.
 * B.
 * C.
 * D.


 * noNe
 * A.
 * B.
 * C.
 * D.


 * -blank-
 * A.
 * B.
 * C.
 * D.


 * fmt=foobar
 * A.
 * B.
 * C.
 * D.
 * E.

code-count & entity-list

 * ISO 4217/code-entity-list
 * ISO 4217/code-count/demo


 * ISO 4217/code-count/demo

|ANG|EUR|HRK|IDR|MWK|PEN|RON|SDG|SZL|TRY
 * ambivalent

minor units (ambiguous code)

 * PEN can refer to an obsolete and an active currency.

For example: EUR is active (&rarr; minor unit "2", $0.01$), but for : obsolete as of 2006-10. PEN
 * Example
 * PEN is ambiguous:
 * 1999 >< (obsolete)
 * no >< (active)
 * is-obsolete >< (active, default)


 * USD ><
 * PEN ><
 * FOO ><
 * blank ><


 * is-obsolete=1999
 * USD ><
 * PEN ><
 * FOO ><
 * blank ><


 * is-obsolete=no
 * USD ><
 * PEN ><
 * FOO ><
 * blank ><


 * is-obsolete=yes
 * USD ><
 * PEN ><
 * FOO ><
 * blank ><

code-is-obsolete

 * ISO 4217/code-is-obsolete‎‎
 * ISO 4217/code-is-obsolete‎‎/calc
 * iso-code, is-obsolete


 * text -text
 * 1.ATS <
 * 1.USD <


 * 1.ATS <
 * 1.USD <


 * 1.ATS <
 * 1.USD <


 * 1.ATS <
 * 1.USD <


 * 1.ATS <
 * 1.USD <


 * situation 10, code=TRUE
 * ATS, Austria shilling - withdrawn


 * 1.ATS ><
 * 2.ATS ><
 * 3.ATS ><
 * 4.ATS ><
 * 5.ATS ><
 * 6.ATS ><


 * situation 20, code=FALSE
 * USD - active


 * 1.USD ><
 * 2.USD ><
 * 3.USD ><
 * 4.USD ><
 * 5.USD ><
 * 6.USD ><


 * situation 30, code=ambiguous
 * PEN, PERU Nuevo Sol (ambivalent so withdrawal/isobsolete needed)


 * 1.PEN ><
 * 2.PEN ><
 * 3.PEN ><
 * 4.PEN ><
 * 5.PEN ><
 * 6.PEN ><


 * situation 40/1, code=bad
 * FOO


 * 1.FOO ><
 * 2.FOO ><
 * 3.FOO ><
 * 4.FOO ><
 * 5.FOO ><
 * 6.FOO ><


 * situation 40/2, code=-blank-
 * -blank-


 * 1.-blank- ><
 * 2.-blank- ><
 * 3.-blank- ><
 * 4.-blank- ><
 * 5.-blank- ><
 * 6.-blank- ><


 * situation 40/3, code=none
 * none


 * 1.none ><
 * 2.none ><
 * 3.none ><
 * 4.none ><
 * 5.none ><
 * 6.none ><


 * situation 12/code: code=T (ATS), is-obs=.. yes
 * 1. ><
 * 2. ><
 * 3. ><
 * 4. ><
 * 5. ><
 * 6. ><


 * situation 12/is-obs: code=T (ATS), is-obs=.. no
 * 1. ><
 * 2. ><
 * 3. ><
 * 4. ><
 * 5. ><
 * 6. ><


 * situation 21/code: code=F (USD), is-obs= yes
 * 1. ><
 * 2. ><
 * 3. ><
 * 4. ><
 * 5. ><
 * 6. ><


 * situation 21/is-obs: code=F (USD), is-obs= no
 * 1. ><
 * 2. ><
 * 3. ><
 * 4. ><
 * 5. ><
 * 6. ><

code-minor-unit

 * ISO 4217/code-minor-unit
 * USD ><
 * PEN ><
 * FOO ><
 * blank ><


 * withdr-date=1999
 * USD ><
 * PEN ><
 * FOO ><
 * blank ><


 * withdr-date=no
 * USD ><
 * PEN ><
 * FOO ><
 * blank ><


 * withdr-date=yes
 * USD ><
 * PEN ><
 * FOO ><
 * blank ><

code-is-ambiguous

 * ISO 4217/code-is-ambiguous‎‎


 * USD &rarr; ><
 * PEN &rarr; ><
 * blank &rarr; ><
 * FOO &rarr; ><


 * ISOcat=yes
 * USD &rarr; ><
 * PEN &rarr; ><
 * blank &rarr; ><
 * FOO &rarr; ><


 * ISOcat=blank
 * USD &rarr; ><
 * PEN &rarr; ><
 * blank &rarr; ><
 * FOO &rarr; ><


 * yes-text=_YES-is-ambig_
 * USD &rarr; ><
 * PEN &rarr; ><
 * blank &rarr; ><
 * FOO &rarr; ><


 * yes-text=&lt;blank>
 * USD &rarr; ><
 * PEN &rarr; ><
 * PEN &rarr; ><
 * blank &rarr; ><
 * FOO &rarr; ><

check & cat

 * check if anyone unit, name_abbr is present (blank or othersise). rule: when para is added, do not categorise
 * check if anyone unit, name_abbr is present (blank or othersise). rule: when para is added, do not categorise


 * para foo

Is obsolete

 * new is_obsolete
 * obsolete_notice

USD

 * USD
 * A. base: ><
 * B1. f:plain: ><
 * B2. f:opt-none: ><
 * C0 nocat: ><
 * C1 ISOcat: ><
 * E1 errtxt: ><
 * E0 blank _etxt: ><
 * G1 cat+_errtxt: ><
 * G0 cat+blank _etxt: ><
 * N is-none: ><
 * num: ><
 * (num): ><

none

 * noNe
 * A. base: ><
 * B1. f:plain: ><
 * B2. f:opt-none: ><
 * C0 nocat: ><
 * C1 ISOcat: ><
 * E1 errtxt: ><
 * E0 blank _etxt: ><
 * G1 cat+_errtxt: ><
 * G0 cat+blank _etxt: ><
 * N is-none: ><
 * num: ><
 * (num): ><

blank

 * blank
 * A. base: ><
 * B1. f:plain: ><
 * B2. f:opt-none: ><
 * C0 nocat: ><
 * C1 ISOcat: ><
 * E1 errtxt: ><
 * E0 blank _etxt: ><
 * G1 cat+_errtxt: ><
 * G0 cat+blank _etxt: ><
 * N is-none: ><
 * num: ><
 * (num): ><

aaa

 * aaa (NaCode)
 * A. base: ><
 * B1. f:plain: ><
 * B2. f:opt-none: ><
 * C0 nocat: ><
 * C1 ISOcat: ><
 * E1 errtxt: ><
 * E0 blank _etxt: ><
 * G1 cat+_errtxt: ><
 * G0 cat+blank _etxt: ><
 * N is-none: ><
 * num: ><
 * (num): ><

vetnone

 * None
 * A. base: ><
 * B1. f:plain: ><
 * B2. f:opt-none: ><
 * C0 nocat: ><
 * C1 ISOcat: ><
 * E1 errtxt: ><
 * E0 blank _etxt: ><
 * G1 cat+_errtxt: ><
 * G0 cat+blank _etxt: ><
 * N is-none: ><
 * num: ><
 * (num): ><


 * ~all option-none
 * A. base: ><
 * B1. f:plain: >< ❌
 * B2. f:opt-none: ><
 * C0 nocat: ><
 * C1 ISOcat: ><
 * E1 errtxt: ><
 * E0 blank _etxt: ><
 * G1 cat+_errtxt: ><
 * G0 cat+blank _etxt: ><
 * N is-none: ><
 * num: ><
 * (num): ><