[PHP-CVS] cvs: php-src(PHP_5_2) /ext/json/tests fail001.phpt

2008-07-31 Thread Rasmus Lerdorf
rasmus  Thu Jul 31 11:49:56 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/json/tests fail001.phpt 
  Log:
  Fix test to test higher nesting level
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/fail001.phpt?r1=1.1.2.4r2=1.1.2.5diff_format=u
Index: php-src/ext/json/tests/fail001.phpt
diff -u php-src/ext/json/tests/fail001.phpt:1.1.2.4 
php-src/ext/json/tests/fail001.phpt:1.1.2.5
--- php-src/ext/json/tests/fail001.phpt:1.1.2.4 Fri May 25 12:31:03 2007
+++ php-src/ext/json/tests/fail001.phpt Thu Jul 31 11:49:55 2008
@@ -24,7 +24,7 @@
'[Illegal backslash escape: \\x15]',
'[Illegal backslash escape: \\\']',
'[Illegal backslash escape: \\017]',
-   
'Too
 
deep',
+   
'Too
 
deep]]!
 ]]',
'{Missing colon null}',
'{Double colon:: null}',
'{Comma instead of colon, null}',
@@ -128,7 +128,7 @@
 NULL
 AS ARRAY
 NULL
-Testing: 
Too
 
deep
+Testing: 
Too
 
deep]!
 ]]]
 AS OBJECT
 NULL
 AS ARRAY



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



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/json/tests fail001.phpt

2007-05-25 Thread Hannes Magnusson
bjori   Fri May 25 12:15:39 2007 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/json/tests fail001.phpt 
  Log:
  Fix test after stack limit bump
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/fail001.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/json/tests/fail001.phpt
diff -u php-src/ext/json/tests/fail001.phpt:1.1.2.2 
php-src/ext/json/tests/fail001.phpt:1.1.2.3
--- php-src/ext/json/tests/fail001.phpt:1.1.2.2 Fri Nov  3 13:16:33 2006
+++ php-src/ext/json/tests/fail001.phpt Fri May 25 12:15:38 2007
@@ -24,7 +24,8 @@
'[Illegal backslash escape: \\x15]',
'[Illegal backslash escape: \\\']',
'[Illegal backslash escape: \\017]',
-   'Too deep',
+   'Not too deep 
anymore',
+   
'I
 am to 
deep',
'{Missing colon null}',
'{Double colon:: null}',
'{Comma instead of colon, null}',
@@ -128,7 +129,132 @@
 NULL
 AS ARRAY
 NULL
-Testing: Too deep
+Testing: Not too deep anymore
+AS OBJECT
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+string(20) Not too deep anymore
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+AS ARRAY
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+array(1) {
+  [0]=
+  array(1) {
+[0]=
+string(20) Not too deep anymore
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+  }
+}
+Testing: 
I
 am 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/json/tests fail001.phpt

2007-05-25 Thread Hannes Magnusson
bjori   Fri May 25 12:31:03 2007 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/json/tests fail001.phpt 
  Log:
  This test should only test failures
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/fail001.phpt?r1=1.1.2.3r2=1.1.2.4diff_format=u
Index: php-src/ext/json/tests/fail001.phpt
diff -u php-src/ext/json/tests/fail001.phpt:1.1.2.3 
php-src/ext/json/tests/fail001.phpt:1.1.2.4
--- php-src/ext/json/tests/fail001.phpt:1.1.2.3 Fri May 25 12:15:38 2007
+++ php-src/ext/json/tests/fail001.phpt Fri May 25 12:31:03 2007
@@ -24,8 +24,7 @@
'[Illegal backslash escape: \\x15]',
'[Illegal backslash escape: \\\']',
'[Illegal backslash escape: \\017]',
-   'Not too deep 
anymore',
-   
'I
 am to 
deep',
+   
'Too
 
deep',
'{Missing colon null}',
'{Double colon:: null}',
'{Comma instead of colon, null}',
@@ -129,132 +128,7 @@
 NULL
 AS ARRAY
 NULL
-Testing: Not too deep anymore
-AS OBJECT
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-string(20) Not too deep anymore
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-AS ARRAY
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-array(1) {
-  [0]=
-  array(1) {
-[0]=
-string(20) Not too deep anymore
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-  }
-}
-

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/json/tests fail001.phpt pass001.1.phpt pass001.phpt pass002.phpt pass003.phpt

2006-08-07 Thread Marcus Boerger
helly   Mon Aug  7 23:28:05 2006 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/json/tests fail001.phpt pass001.1.phpt pass001.phpt 
pass002.phpt pass003.phpt 
  Log:
  - Test name must not be more than a single line
  
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/fail001.phpt?r1=1.1r2=1.1.2.1diff_format=u
Index: php-src/ext/json/tests/fail001.phpt
diff -u php-src/ext/json/tests/fail001.phpt:1.1 
php-src/ext/json/tests/fail001.phpt:1.1.2.1
--- php-src/ext/json/tests/fail001.phpt:1.1 Tue Jan 31 09:00:14 2006
+++ php-src/ext/json/tests/fail001.phpt Mon Aug  7 23:28:05 2006
@@ -1,6 +1,5 @@
 --TEST--
-JSON Test Pattern fail1 - fail24
-http://www.crockford.com/JSON/JSON_checker/test/fail*.json
+JSON (http://www.crockford.com/JSON/JSON_checker/test/fail*.json)
 --SKIPIF--
 ?php
   if (!extension_loaded('json')) die('skip: json extension not available');
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/pass001.1.phpt?r1=1.3r2=1.3.2.1diff_format=u
Index: php-src/ext/json/tests/pass001.1.phpt
diff -u php-src/ext/json/tests/pass001.1.phpt:1.3 
php-src/ext/json/tests/pass001.1.phpt:1.3.2.1
--- php-src/ext/json/tests/pass001.1.phpt:1.3   Sat Mar  4 15:31:27 2006
+++ php-src/ext/json/tests/pass001.1.phpt   Mon Aug  7 23:28:05 2006
@@ -1,16 +1,16 @@
 --TEST--
-JSON Test Pattern pass1.1
-Modified to test unescaped UNICODE as keys and values.
-Modified to test numbers with exponents without a decimal point.
-Modified to test empty string values.
-Modified to test a mix of integers and strings as keys.
-http://www.crockford.com/JSON/JSON_checker/test/pass1.json
+JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
 --SKIPIF--
 ?php
   if (!extension_loaded('json')) die('skip: json extension not available');
 ?
 --FILE--
 ?php
+/* Modified to test unescaped UNICODE as keys and values.
+ * Modified to test numbers with exponents without a decimal point.
+ * Modified to test empty string values.
+ * Modified to test a mix of integers and strings as keys.
+ */
 // Expect warnings about INF.
 ini_set(error_reporting, E_ALL  ~E_WARNING);
 
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/pass001.phpt?r1=1.1r2=1.1.2.1diff_format=u
Index: php-src/ext/json/tests/pass001.phpt
diff -u php-src/ext/json/tests/pass001.phpt:1.1 
php-src/ext/json/tests/pass001.phpt:1.1.2.1
--- php-src/ext/json/tests/pass001.phpt:1.1 Tue Jan 31 09:00:14 2006
+++ php-src/ext/json/tests/pass001.phpt Mon Aug  7 23:28:05 2006
@@ -1,6 +1,5 @@
 --TEST--
-JSON Test Pattern pass1
-http://www.crockford.com/JSON/JSON_checker/test/pass1.json
+JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
 --SKIPIF--
 ?php
   if (!extension_loaded('json')) die('skip: json extension not available');
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/pass002.phpt?r1=1.1r2=1.1.2.1diff_format=u
Index: php-src/ext/json/tests/pass002.phpt
diff -u php-src/ext/json/tests/pass002.phpt:1.1 
php-src/ext/json/tests/pass002.phpt:1.1.2.1
--- php-src/ext/json/tests/pass002.phpt:1.1 Tue Jan 31 09:00:14 2006
+++ php-src/ext/json/tests/pass002.phpt Mon Aug  7 23:28:05 2006
@@ -1,6 +1,5 @@
 --TEST--
-JSON Test Pattern pass2
-http://www.crockford.com/JSON/JSON_checker/test/pass2.json
+JSON (http://www.crockford.com/JSON/JSON_checker/test/pass2.json)
 --SKIPIF--
 ?php
   if (!extension_loaded('json')) die('skip: json extension not available');
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/pass003.phpt?r1=1.1r2=1.1.2.1diff_format=u
Index: php-src/ext/json/tests/pass003.phpt
diff -u php-src/ext/json/tests/pass003.phpt:1.1 
php-src/ext/json/tests/pass003.phpt:1.1.2.1
--- php-src/ext/json/tests/pass003.phpt:1.1 Tue Jan 31 09:00:14 2006
+++ php-src/ext/json/tests/pass003.phpt Mon Aug  7 23:28:05 2006
@@ -1,6 +1,5 @@
 --TEST--
-JSON Test Pattern pass3
-http://www.crockford.com/JSON/JSON_checker/test/pass3.json
+JSON (http://www.crockford.com/JSON/JSON_checker/test/pass3.json)
 --SKIPIF--
 ?php
   if (!extension_loaded('json')) die('skip: json extension not available');

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