summaryrefslogtreecommitdiff
path: root/_test/cases/inc/pageutils_clean_id.test.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-01-25 23:18:55 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-01-25 23:18:55 +0100
commitc0ddfaa565d7b4631a7276e0dacf358d046b8d46 (patch)
treef2562cd87a430ef6ee88e891034beb70d67f90f5 /_test/cases/inc/pageutils_clean_id.test.php
parent30506cef7e42d95d7444431298106632d4fbf90f (diff)
downloadrpg-c0ddfaa565d7b4631a7276e0dacf358d046b8d46.tar.gz
rpg-c0ddfaa565d7b4631a7276e0dacf358d046b8d46.tar.bz2
fixed multiple unit tests. (1 failing)
Ignore-this: 261098274bce329f446fc8768c25b9e5 Most failing tests were just out of date, because certain behavior was changed. There is one test failing for parsing italic tests. This can probably not be fixed without larger changes at the parser to catch runaway lines at the paragraph end. FS#1574 darcs-hash:20090125221855-7ad00-968655d609945aae764c3124fb906ce086025df4.gz
Diffstat (limited to '_test/cases/inc/pageutils_clean_id.test.php')
-rw-r--r--_test/cases/inc/pageutils_clean_id.test.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/_test/cases/inc/pageutils_clean_id.test.php b/_test/cases/inc/pageutils_clean_id.test.php
index 9884bbc12..9c03ce334 100644
--- a/_test/cases/inc/pageutils_clean_id.test.php
+++ b/_test/cases/inc/pageutils_clean_id.test.php
@@ -28,7 +28,11 @@ class init_clean_id_test extends UnitTestCase {
$tests[] = array('pa$%^*#ge',false,'pa_ge');
$tests[] = array('*page*',false,'page');
$tests[] = array('ښ',false,'ښ');
- $tests[] = array('ښ侧化并곦ঝഈβ',false,'ښ侧化并곦ঝഈ');
+ $tests[] = array('päge',false,'paege');
+ $tests[] = array('foo bar',false,'foo_bar');
+ $tests[] = array('PÄGÖ',false,'paegoe');
+ $tests[] = array('Faß','false','fass');
+ $tests[] = array('ښ侧化并곦 β',false,'ښ侧化并곦_β');
$tests[] = array('page:page',false,'page:page');
$tests[] = array('page;page',false,'page:page');
@@ -80,7 +84,7 @@ class init_clean_id_test extends UnitTestCase {
$tests[] = array('pagĖ',false,'pagė');
$tests[] = array('pagĒēĔĕĖėĘęĚě',false,'pagēēĕĕėėęęěě');
$tests[] = array('ښ',false,'ښ');
- $tests[] = array('ښ侧化并곦ঝഈβ',false,'ښ侧化并곦ঝഈ');
+ $tests[] = array('ښ侧化并곦ঝഈβ',false,'ښ侧化并곦ঝഈβ');
foreach($tests as $test){
$this->assertEqual(cleanID($test[0],$test[1]),$test[2]);
@@ -100,7 +104,7 @@ class init_clean_id_test extends UnitTestCase {
$tests[] = array('pagĖ',false,'page');
$tests[] = array('pagĒēĔĕĖėĘęĚě',false,'pageeeeeeeeee');
$tests[] = array('ښ',false,'ښ');
- $tests[] = array('ښ侧化并곦ঝഈβ',false,'ښ侧化并곦ঝഈ');
+ $tests[] = array('ښ侧化并곦ঝഈβ',false,'ښ侧化并곦ঝഈβ');
foreach($tests as $test){
$this->assertEqual(cleanID($test[0],$test[1]),$test[2]);