summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian A. Weber2016-07-16 18:24:08 +0200
committerChristian A. Weber2016-07-16 18:24:08 +0200
commitaec4634e59713e125fa6e5ee2826ab5546db7446 (patch)
tree0b01526b0e95831ad1d36ead3e17b5c15a779ed1 /tests
parent1f7cbb5a8a7869073d96c0f2dae45be7c0eed0c2 (diff)
downloaditools-aec4634e59713e125fa6e5ee2826ab5546db7446.tar.gz
itools-aec4634e59713e125fa6e5ee2826ab5546db7446.tar.bz2
itools-aec4634e59713e125fa6e5ee2826ab5546db7446.zip
itjs::serialize() and itjs::encode() can encode null
Diffstat (limited to 'tests')
-rwxr-xr-xtests/itjs.t6
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'