helly           Mon Jul 25 14:27:42 2005 EDT

  Modified files:              
    /php-src/ext/pspell/tests   01pspell_basic.phpt 
  Log:
  - Be flexible about spellbook - we want to test the ext not the spell 
corrections available
  
http://cvs.php.net/diff.php/php-src/ext/pspell/tests/01pspell_basic.phpt?r1=1.6&r2=1.7&ty=u
Index: php-src/ext/pspell/tests/01pspell_basic.phpt
diff -u php-src/ext/pspell/tests/01pspell_basic.phpt:1.6 
php-src/ext/pspell/tests/01pspell_basic.phpt:1.7
--- php-src/ext/pspell/tests/01pspell_basic.phpt:1.6    Thu Dec 16 07:34:31 2004
+++ php-src/ext/pspell/tests/01pspell_basic.phpt        Mon Jul 25 14:27:41 2005
@@ -8,7 +8,7 @@
        }
 ?>
 --FILE--
-<?php // $Id: 01pspell_basic.phpt,v 1.6 2004/12/16 12:34:31 sniper Exp $
+<?php // $Id: 01pspell_basic.phpt,v 1.7 2005/07/25 18:27:41 helly Exp $
 
 error_reporting(E_ALL);
 $string = "";
@@ -29,17 +29,13 @@
     echo $array[$i].' : ';
     if (!pspell_check($pspell, $array[$i])) {
         echo "..false\n";
-        $suggestions = pspell_suggest ($pspell, $array[$i]);
-
-        foreach ($suggestions as $suggestion) {
-            echo "Possible spelling: $suggestion\n"; 
-        }
+        echo "Possible spellings: " . join(',',pspell_suggest ($pspell, 
$array[$i])) . "\n"; 
     } else {
         echo "true\n";
     }
 }
 ?>
---EXPECT--
+--EXPECTF--
 I : true
 will : true
 not : true
@@ -90,23 +86,7 @@
 pack : true
 Ya : true
 Seegarets : ..false
-Possible spelling: Secrets
-Possible spelling: Regrets
-Possible spelling: Secretes
-Possible spelling: Egrets
-Possible spelling: Segre's
-Possible spelling: Seagate's
-Possible spelling: Regreets
-Possible spelling: Segregates
-Possible spelling: Sergeants
-Possible spelling: Sugariest
-Possible spelling: Garrets
-Possible spelling: Socrates
-Possible spelling: Egret's
-Possible spelling: Separates
-Possible spelling: Cigarettes
-Possible spelling: Sugared
-Possible spelling: Scarlets
+Possible spellings:%s,Regrets,%s,Cigarettes,%s
 Ya : true
 Uh : true
 My : true
@@ -132,9 +112,5 @@
 a : true
 match : true
 Ahh : ..false
-Possible spelling: Shh
-Possible spelling: Ah
-Possible spelling: Aha
-Possible spelling: Ash
-Possible spelling: Ha
+Possible spellings:%sAh,Aha,%s
 matches : true

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to