diff options
author | Christian A. Weber | 2016-07-16 18:24:08 +0200 |
---|---|---|
committer | Christian A. Weber | 2016-07-16 18:24:08 +0200 |
commit | aec4634e59713e125fa6e5ee2826ab5546db7446 (patch) | |
tree | 0b01526b0e95831ad1d36ead3e17b5c15a779ed1 /tests | |
parent | 1f7cbb5a8a7869073d96c0f2dae45be7c0eed0c2 (diff) | |
download | itools-aec4634e59713e125fa6e5ee2826ab5546db7446.tar.gz itools-aec4634e59713e125fa6e5ee2826ab5546db7446.tar.bz2 itools-aec4634e59713e125fa6e5ee2826ab5546db7446.zip |
itjs::serialize() and itjs::encode() can encode null
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/itjs.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/itjs.t b/tests/itjs.t index 8dff992..fce81ee 100755 --- a/tests/itjs.t +++ b/tests/itjs.t @@ -6,6 +6,12 @@ $_GET['aa'] = 1; is( + itjs::serialize(null), + 'null', + 'null' +); + +is( itjs::serialize(array()), '[]', 'empty array' |