# 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. !! resultHello, 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, '''ωορ'''λδ. !! resulthello, ωορλδ.
!! end !! test Greek and English, with a list !! input * hello * ωορ * λδ today. !! resulthello, ωορλδ.
!! end !! test Greek and English in a table !! input {| |Hello||ωορλδ |- |Hello ωο||ρλδ |} !! resultHello | ωορλδ |
Hello ωο | ρλδ |
hello, ωορλδ.
normal text
!!end