felipe          Fri Feb  6 10:40:16 2009 UTC

  Modified files:              
    /php-src/ext/standard/tests/strings bug47322.phpt 
  Log:
  - Improve test
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug47322.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/strings/bug47322.phpt
diff -u php-src/ext/standard/tests/strings/bug47322.phpt:1.1 
php-src/ext/standard/tests/strings/bug47322.phpt:1.2
--- php-src/ext/standard/tests/strings/bug47322.phpt:1.1        Fri Feb  6 
10:18:40 2009
+++ php-src/ext/standard/tests/strings/bug47322.phpt    Fri Feb  6 10:40:16 2009
@@ -3,17 +3,17 @@
 --FILE--
 <?php
 
-sscanf("15:59:58.2","%d:%d:%f", $a, $b, $c);
+sscanf(":59:58","%s:%d:%f", $a, $b, $c);
 echo "[$a][$b][$c]\n";
 
-sscanf("15:59:58.2","%d:%d:%f", $a, $b, $c);
+sscanf("15:01:58.2","%d:%f:%f", $a, $b, $c);
 echo "[$a][$b][$c]\n";
 
-sscanf("15:59:foo","%d:%d:%s", $a, $b, $c);
+sscanf("15.1111::foo","%f:%d:%s", $a, $b, $c);
 echo "[$a][$b][$c]\n";
 
 ?>
 --EXPECT--
-[15][59][58.2]
-[15][59][58.2]
-[15][59][foo]
+[:59:58][][]
+[15][1][58.2]
+[15.1111][1][58.2]



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

Reply via email to