* Add auto test case.

This commit is contained in:
xieqiyu
2022-01-18 14:27:58 +08:00
parent 809d34a266
commit 7077a85277
12 changed files with 404 additions and 18 deletions
+2 -2
View File
@@ -79,11 +79,11 @@ function p($keys = '', $delimiter = ',')
if(empty($_result)) return print(">> 0\n");
if(is_array($_result) and isset($_result['code']) and $_result['code'] == 'fail') return print(">> " . (string) $_result['message'] . "\n");
/* Print $_result. */
if(!$keys or !is_array($_result) and !is_object($_result)) return print(">> " . (string) $_result . "\n");
if(is_array($_result) and isset($_result['code']) and $_result['code'] == 'fail') return print(">> " . (string) $_result['message'] . "\n");
$parts = explode(';', $keys);
$values = array();
foreach($parts as $part)