com php-src: Better test: Check combined leading/trailing: ext/json/tests/bug64874_part1.phpt

From: Date: Tue, 15 Oct 2013 20:42:31 +0000
Subject: com php-src: Better test: Check combined leading/trailing: ext/json/tests/bug64874_part1.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73925@lists.php.net to get a copy of this message
Commit: 8495d6303400edd9b84a6febd2a6b62b38e11c97 Author: Andrea Faulds <ajf@ajf.me> Tue, 15 Oct 2013 20:42:31 +0000 Parents: 2524428504ec9e154b01db7f6040e42c1bc89ada Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8495d6303400edd9b84a6febd2a6b62b38e11c97 Log: Better test: Check combined leading/trailing Changed paths: M ext/json/tests/bug64874_part1.phpt Diff: diff --git a/ext/json/tests/bug64874_part1.phpt b/ext/json/tests/bug64874_part1.phpt index 4047eb8..6b79b8d 100644 --- a/ext/json/tests/bug64874_part1.phpt +++ b/ext/json/tests/bug64874_part1.phpt @@ -22,6 +22,24 @@ decode("true\t"); decode("true\n"); decode("true\r"); +// And so should the combination of both +decode(" true "); +decode(" true\t"); +decode(" true\n"); +decode(" true\r"); +decode("\ttrue "); +decode("\ttrue\t"); +decode("\ttrue\n"); +decode("\ttrue\r"); +decode("\ntrue "); +decode("\ntrue\t"); +decode("\ntrue\n"); +decode("\ntrue\r"); +decode("\rtrue "); +decode("\rtrue\t"); +decode("\rtrue\n"); +decode("\rtrue\r"); + echo "Done\n"; --EXPECT-- bool(true) @@ -48,4 +66,52 @@ bool(false) bool(true) bool(false) +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + +bool(true) +bool(false) + Done

« previous php.cvs (#73925) next »