--- parser3/tests/164.html 2007/04/23 14:45:35 1.1 +++ parser3/tests/164.html 2007/04/23 15:13:09 1.3 @@ -7,8 +7,9 @@ $hf[^hashfile::open[$sName]] ^checkFiles[$sName]
-Storing 3 values and show all items...
-^put[$hf;1;value 1](1) +Storing 4 values and show all items...
+^put[$hf;0;value 0](2) +^put[$hf;1;value 1;^date::now(+1/24/60/60)] ^put[$hf;2;value 2](3) ^put[$hf;3;value 3](4) ^print[$hf] @@ -46,7 +47,7 @@ Delete files and check if they exists...
Put value and check auto re-opening... -^put[$hf;1;value 1](1) +^put[$hf;1;value 1] ^checkFiles[$sName] # finalizing: remove files for make next test start working well @@ -54,10 +55,16 @@ Put value and check auto re-opening... -@put[hf;sKey;sValue;iTime] +@put[hf;sKey;sValue;uExpires] $hf.$sKey[ $.value[$sValue] - $.expires($iTime/24/60/60) + ^if(def $uExpires){ + ^if($uExpires is "date"){ + $.expires[$uExpires] + }{ + $.expires($uExpires/24/60/60) + } + } ]