X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.pure.lisp;h=156c535ae75ddd12ab8775fbd0ec8d528ee6e84d;hb=8d10dd337a91dc2f53cbd0e8e68b0e49238deaa3;hp=829a4d4e30f8149b4078b7f7b750d25870a844d8;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/tests/interface.pure.lisp b/tests/interface.pure.lisp index 829a4d4..156c535 100644 --- a/tests/interface.pure.lisp +++ b/tests/interface.pure.lisp @@ -129,6 +129,15 @@ (test (* 86400 365) 0 (0 0 0 1 1 1901 1 0)) (test (* 86400 365) 1/3600 (59 59 23 31 12 1900 0 1/3600))) +;;; DECODE-UNIVERSAL-TIME shouldn't fail when the time is outside UNIX +;;; 32-bit time_t and a timezone wasn't passed +(decode-universal-time 0 nil) + +;;; ENCODE-UNIVERSAL-TIME should be able to encode the universal time +;;; 0 when passed a representation in a timezone where the +;;; representation of 0 as a decoded time is in 1899. +(encode-universal-time 0 0 23 31 12 1899 1) + ;;; DISASSEMBLE shouldn't fail on purified functions (disassemble 'cl:+) (disassemble 'sb-ext:run-program) @@ -137,4 +146,4 @@ ;;; comprehensive test. (loop repeat 2 do (compile nil '(lambda (x) x)) - do (sb-ext:gc :full t)) + do (sb-ext:gc :full t)) \ No newline at end of file