diff options
author | Andrea Faulds <ajf@ajf.me> | 2013-10-15 20:42:31 +0000 |
---|---|---|
committer | Andrea Faulds <ajf@ajf.me> | 2013-10-15 20:42:31 +0000 |
commit | 8495d6303400edd9b84a6febd2a6b62b38e11c97 (patch) | |
tree | efda645642518e9a20854da7b32d0ba0b972a7b2 | |
parent | 2524428504ec9e154b01db7f6040e42c1bc89ada (diff) | |
download | php-git-8495d6303400edd9b84a6febd2a6b62b38e11c97.tar.gz |
Better test: Check combined leading/trailing
-rw-r--r-- | ext/json/tests/bug64874_part1.phpt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/ext/json/tests/bug64874_part1.phpt b/ext/json/tests/bug64874_part1.phpt index 4047eb895c..6b79b8dc04 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 |