# Extra tests for parserTests.php, with the default configuration of CharRangeSpan # # Enable the extension, then test with: # php tests/parserTests.php --file=extensions/CharRangeSpan/tests/parser/parserTests.txt !! test Only Greek text !! input γενεαλογεῖται δὲ !! result

γενεαλογεῖται δὲ

!! end !! test Only English text !! input Hello, world. !! result

Hello, world.

!! end !! test Greek then English text !! input γενεαλογεῖται δὲ and hello world !! result

γενεαλογεῖται δὲ and hello world

!! end !! test Alternate Greek and English words !! input γενεαλογεῖται hello δὲ world !! result

γενεαλογεῖται hello δὲ world

!! end !! test Greek and English sentences, with 'maybe' characters (commas) !! input τοῦ Ἀπελλίδος, τοῦ Μελανώπου. Hello, world. !! result

τοῦ Ἀπελλίδος, τοῦ Μελανώπου. Hello, world.

!! end !! test Greek and English, with bold through some of Greek !! input hello, '''ωορ'''λδ. !! result

hello, ωορλδ.

!! end !! test Greek and English, with a list !! input * hello * ωορ * λδ today. !! result !! end !! test Greek and English, with italic through both !! input hel''lo, ωορ''λδ. !! result

hello, ωορλδ.

!! end !! test Greek and English in a table !! input {| |Hello||ωορλδ |- |Hello ωο||ρλδ |} !! result
Hello ωορλδ
Hello ωο ρλδ
!! end !! test Greek and English, with strike through both !! input hello, ωορλδ. !! result

hello, ωορλδ.

!! end !! test Ignore attributes !! input normal text !!result

normal text

!!end